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,15 @@
<?cs # $Id$ ?>
<h1><?cs var:html_escape(Lang.Plugins.disks.Title.Disks) ?></h1>
<?cs # TODO: add no-disks-available warning ?>
<?cs if:subcount(Data.Disks) == 0 ?>
NO DISKS
<?cs else ?>
<?cs # we use "loop" instead of "each" to keep the order of the disks ?>
<?cs loop: index = #0, subcount(Data.Disks)-1, #1 ?>
<?cs call:show_volume(index) ?>
<?cs /loop ?>
<?cs /if ?>

View file

@ -0,0 +1,17 @@
import CryptoBoxPlugin
class disks(CryptoBoxPlugin.CryptoBoxPlugin):
pluginCapabilities = [ "menu" ]
requestAuth = False
rank = 10
def doAction(self):
self.cbox.reReadContainerList()
return "disks"
def getStatus(self):
return "TODO"

View file

@ -0,0 +1,5 @@
Name = Disk overview
Link = Disks
Title.Disks = Available disks

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB