2006-09-12 10:55:20 +02:00
|
|
|
|
2006-09-14 14:33:01 +02:00
|
|
|
def doAction(hdf, cbox):
|
|
|
|
__prepareFormData(hdf,cbox)
|
2006-09-12 10:55:20 +02:00
|
|
|
return "show_log"
|
|
|
|
|
|
|
|
|
|
|
|
def getStatus(cbox):
|
|
|
|
return "%s:%s:%s" % (
|
|
|
|
cbox.prefs["Log"]["Level"],
|
|
|
|
cbox.prefs["Log"]["Destination"],
|
|
|
|
cbox.prefs["Log"]["Details"])
|
|
|
|
|
|
|
|
|
2006-09-14 14:33:01 +02:00
|
|
|
def __prepareFormData(hdf, cbox):
|
|
|
|
hdf["Data.Plugins.logs.Content"] = __getLogContent(cbox)
|
|
|
|
|
|
|
|
|
2006-09-12 10:55:20 +02:00
|
|
|
def __getLogContent(cbox, lines=30, maxSize=2000):
|
|
|
|
return "<br/>".join(cbox.getLogData(lines, maxSize))
|
|
|
|
|