(self)
| 767 | |
| 768 | class show_log: |
| 769 | def GET(self): |
| 770 | i = web.input(name="") |
| 771 | logname = i.name |
| 772 | filepath = config.get("errorlog", "errors") + "/" + logname + ".html" |
| 773 | if os.path.exists(filepath): |
| 774 | with open(filepath) as f: |
| 775 | return f.read() |
| 776 | |
| 777 | |
| 778 | class pd_dashboard: |