new menu plugins: "help", "system_preferences" and "disks"

description of plugin interface extended with possible redirection to another plugin
This commit is contained in:
lars 2006-11-01 09:22:58 +00:00
parent 7fd361d8ac
commit 87d99e8173
18 changed files with 125 additions and 21 deletions

View file

@ -0,0 +1,7 @@
<?cs # $Id$ ?>
<div id="doc">
<?cs include:Settings.DocDir + '/' + Settings.Language + '/' + Data.Plugins.help.Page + '.html' ?>
</div>

View file

@ -0,0 +1,25 @@
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"

View file

@ -0,0 +1,5 @@
Name = User manual
Link = Help
Title.Help = User manual

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB