cryptonas-branches/pythonrewrite/plugins/help/help.py
lars 87d99e8173 new menu plugins: "help", "system_preferences" and "disks"
description of plugin interface extended with possible redirection to another plugin
2006-11-01 09:22:58 +00:00

25 lines
503 B
Python

import CryptoBoxPlugin
class help(CryptoBoxPlugin.CryptoBoxPlugin):
pluginCapabilities = [ "menu" ]
requestAuth = False
rank = 50
def doAction(self, page=""):
'''prints the offline wikipage
'''
import re
## check for invalid characters
if page and not re.search(u'\W', page):
self.hdf[self.hdf_prefix + "Page"] = page
else:
## display this page as default help page
self.hdf[self.hdf_prefix + "Page"] ="CryptoBoxUser"
return "doc"
def getStatus(self):
return "TODO"