Commits

Luke Plant  committed 5c176d7

Variable rename

  • Participants
  • Parent commits 922bb15

Comments (0)

Files changed (2)

File bibleverses/config.py

-DATABASE = "/home/luke/misc/notes/db/trac.db"
 OUTPUTHTMLDIR = "/home/luke/httpd/lukeplant.me.uk/src/bible"
 
 VERSEYAMLPAGENAME = 'BibleMemorisationYaml'
 
 AUTHOR = "luke"
 
+# Define 'datareader' backend and 'datawriters' backends
+
 from readers import TracWikiReader
-reader = TracWikiReader(DATABASE)
+DATABASE = "/home/luke/misc/notes/db/trac.db"
+datareader = TracWikiReader(DATABASE)

File bibleverses/parse.py

 # but we simply build custom objects for everything, and initialise
 # using 'foo = unicode(yaml_foo_data)', which is safe.
 
-from config import VERSEYAMLPAGENAME, TOPICYAMLPAGENAME, SCHEMEYAMLPAGENAME, reader
+from config import VERSEYAMLPAGENAME, TOPICYAMLPAGENAME, SCHEMEYAMLPAGENAME, datareader
 
 from sword import get_bible_text, correct_verse_ref
 
     return text[(start+3):end]
 
 def get_verses_raw_data():
-    text = reader(VERSEYAMLPAGENAME)
+    text = datareader(VERSEYAMLPAGENAME)
     return get_literal_block(text)
 
 def get_topictree_raw_data():
-    return reader(TOPICYAMLPAGENAME)
+    return datareader(TOPICYAMLPAGENAME)
 
 def get_schemes_raw_data():
-    return get_literal_block(reader(SCHEMEYAMLPAGENAME))
+    return get_literal_block(datareader(SCHEMEYAMLPAGENAME))
 
 class Verse(object):
     def __init__(self, verse, texts=None, categories=None):