From 1527d0a09bea56a7ebaa86a3e958937f2f31022a Mon Sep 17 00:00:00 2001 From: wking Date: Thu, 28 Aug 2008 20:09:19 -0400 Subject: [PATCH] Updated the docs template with a Location regexp form. Also fixed a silly typo in text_db.py. --- chem_web.py | 14 ++++++++++++++ text_db.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.26.2