new plugins: 'format_fs', 'volume_mount', 'volume_props', 'shutdown' and 'volume_details'

new plugin attribute: "requestAuth"
This commit is contained in:
lars 2006-10-09 16:43:14 +00:00
parent 0e8a5daa73
commit ca13aebdc8
27 changed files with 920 additions and 45 deletions

View file

@ -1,18 +1,22 @@
<?cs # $Id$ ?>
<style type="text/css">
input.ipnum { text-align: center }
</style>
<h1><?cs var:html_escape(Lang.Plugins.network.Title.Network) ?></h1>
<?cs call:print_form_header("plugins/network") ?>
<p><label for="ip"><?cs var:html_escape(Lang.Plugins.network.Text.IP) ?>: </label><br/>
<input type="text" tabindex="1" name="ip1" size="3" id="ip" value="<?cs
var:Data.Plugins.network.ip.oc1 ?>" />.
<input type="text" tabindex="1" name="ip2" size="3" value="<?cs
var:Data.Plugins.network.ip.oc2 ?>" />.
<input type="text" tabindex="2" name="ip3" size="3" value="<?cs
var:Data.Plugins.network.3p.oc3 ?>" />.
<input type="text" tabindex="4" name="ip4" size="3" value="<?cs
var:Data.Plugins.network.ip.oc4 ?>" /></p>
<p><label for="ip"><?cs var:html_escape(Lang.Plugins.network.Text.IP) ?>: </label>
<input class="ipnum" type="text" tabindex="1" name="ip1" size="3" id="ip"
value="<?cs var:Data.Plugins.network.ip.oc1
?>" />.<input class="ipnum" type="text" tabindex="2" name="ip2" size="3"
value="<?cs var:Data.Plugins.network.ip.oc2
?>" />.<input class="ipnum" type="text" tabindex="3" name="ip3" size="3"
value="<?cs var:Data.Plugins.network.ip.oc3
?>" />.<input class="ipnum" type="text" tabindex="4" name="ip4" size="3"
value="<?cs var:Data.Plugins.network.ip.oc4 ?>" /></p>
<input type="hidden" tabindex="5" name="store" value="yes" />

View file

@ -8,6 +8,9 @@ CHANGE_IP_DELAY=5
class network(CryptoBoxPlugin.CryptoBoxPlugin):
pluginCapabilities = [ "system" ]
requestAuth = True
def doAction(self, store=None, redirected="", ip1="", ip2="", ip3="", ip4=""):
## if we were redirected, then we should display the default page
if redirected == "1":