' <head>\n'
' </head>\n'
' <body>\n'
+ ' <p>\n'
' <a href="/docs/inventory.pdf">Inventory</a>\n'
' in accordance with the \n'
' <a href="http://www.drexelsafetyandhealth.com/lab-chem.htm#chpe7">\n'
' and \n'
' <a href="http://www.drexelsafetyandhealth.com/lab-chem.htm#chpe10">E-10</a>\n'
' .<br>\n'
+ ' </p>\n'
+ ' <p>\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'
+ ' </p>\n'
+ ' <form action="" method="post" enctype="multipart/form-data">\n'
+ ' <table>\n'
+ ' <tr><td>Location regexp</td><td>:</td>\n'
+ ' <td><input type="text" size="50" id="regexp" name="regexp"></td></tr>\n'
+ ' </table>\n'
+ ' <input type="submit" value="Submit" />\n'
+ ' </form>\n'
' </body>\n'
'</html>\n')
file(self.dir+'docs.html', 'w').write(docs)
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