2006-11-01 10:22:58 +01:00
|
|
|
import CryptoBoxPlugin
|
|
|
|
|
|
|
|
class help(CryptoBoxPlugin.CryptoBoxPlugin):
|
|
|
|
|
|
|
|
pluginCapabilities = [ "menu" ]
|
|
|
|
requestAuth = False
|
2006-11-06 07:17:22 +01:00
|
|
|
rank = 80
|
2006-11-01 10:22:58 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
|