logfile is accessable via web

This commit is contained in:
age 2006-08-24 08:13:56 +00:00
parent 707fb71476
commit 89e06ff669
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,9 @@ class CryptoBoxWebserverSettings:
## put all found Settings values in the dictionary ## put all found Settings values in the dictionary
for key in self.cbxPrefs["Settings"].keys(): for key in self.cbxPrefs["Settings"].keys():
website.settings["Settings."+key] = self.cbxPrefs["Settings"][key] website.settings["Settings."+key] = self.cbxPrefs["Settings"][key]
# for the logbook
self.log.info(self.cbxPrefs)
website.settings["Settings.Details"] = self.cbxPrefs["Log"]["Details"]
#self.log.info(self.settings) #self.log.info(self.settings)

View file

@ -39,6 +39,8 @@ class CryptoBoxWebserverSites(CryptoBox.CryptoBoxProps, CryptoBoxWebserverSettin
'''be careful to name this method just "log" seems to be a '''be careful to name this method just "log" seems to be a
reserved word''' reserved word'''
self.__prepare("show_log") self.__prepare("show_log")
import filehandling
self.settings["Data.Log"] = filehandling.read_file(self.settings["Settings.Details"])
return website.render(self) return website.render(self)
def status(self): def status(self):