* forgot to add Exceptions

* webserver conf in a file
This commit is contained in:
age 2006-09-04 06:02:53 +00:00
parent baafed8f38
commit fccfba66d7
3 changed files with 91 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class CryptoBoxWebserver:
#perhaps put config handling into a seperate class in CryptoBox.py?
# [l] why do we need to map the css manually? Shouldn't the whole
# www-data path be accessible anyway?
'''
cherrypy.config.configMap.update(
{
"/cryptobox.css": {
@ -26,8 +27,10 @@ class CryptoBoxWebserver:
"staticFilter.file": os.path.abspath("../www-data/cryptobox.css" )
}
})
'''
def start(self):
cherrypy.config.update(file = "cryptoboxwebserver.conf")
cherrypy.server.start()
if __name__ == "__main__":