def doAction(hdf, cbox): __prepareFormData(hdf,cbox) return "show_log" def getStatus(cbox): return "%s:%s:%s" % ( cbox.prefs["Log"]["Level"], cbox.prefs["Log"]["Destination"], cbox.prefs["Log"]["Details"]) def __prepareFormData(hdf, cbox): hdf["Data.Plugins.logs.Content"] = __getLogContent(cbox) def __getLogContent(cbox, lines=30, maxSize=2000): return "
".join(cbox.getLogData(lines, maxSize))