From: wking Date: Fri, 29 Aug 2008 00:09:19 +0000 (-0400) Subject: Updated the docs template with a Location regexp form. X-Git-Tag: 0.3~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1527d0a09bea56a7ebaa86a3e958937f2f31022a;p=chemdb.git Updated the docs template with a Location regexp form. Also fixed a silly typo in text_db.py. --- diff --git a/chem_web.py b/chem_web.py index 4ea9de0..ba24324 100755 --- a/chem_web.py +++ b/chem_web.py @@ -438,6 +438,7 @@ class templt (object) : ' \n' ' \n' ' \n' + '

\n' ' Inventory\n' ' in accordance with the \n' ' \n' @@ -448,6 +449,19 @@ class templt (object) : ' and \n' ' E-10\n' ' .
\n' + '

\n' + '

\n' + ' For door warnings for subsections of the whole room,\n' + ' please give a location regexp in the form below.\n' + ' For example: ".*liquids" or "refrigerator".\n' + '

\n' + '
\n' + ' \n' + ' \n' + ' \n' + '
Location regexp:
\n' + ' \n' + '
\n' ' \n' '\n') file(self.dir+'docs.html', 'w').write(docs) diff --git a/text_db.py b/text_db.py index bc9f20d..06d31fc 100644 --- a/text_db.py +++ b/text_db.py @@ -52,7 +52,7 @@ class text_db (object) : self._open() # directory and file IO operations - def check_dir(self. dir) : + def check_dir(self, dir) : "Create the database directory if it's missing" if os.path.isdir(dir) : return # all set to go