URLs changed to new plugin addressing scheme
svn:keywords set fixed: shutdown - delay reboot/poweroff by some seconds to finish the web page before added: format_fs - show link to umount in case of active device added: new plugin "language_selection" fixed: recently introduced syntax error in 'network' added: "volume_props" mentions encryption support via "format_fs" (including link) updated: plugin-interface.txt fixed: broken test case for date plugin (caused by twill, I guess) added: "partition" plugin - better handling of config partition
This commit is contained in:
parent
7905fe7051
commit
80337411ae
49 changed files with 259 additions and 116 deletions
|
@ -7,7 +7,7 @@ class date(CryptoBoxPlugin.CryptoBoxPlugin):
|
|||
requestAuth = False
|
||||
rank = 10
|
||||
|
||||
def doAction(self, store=None, year=0, month=0, day=0, hour=0, minute=0):
|
||||
def doAction(self, store=None, year=None, month=None, day=None, hour=None, minute=None):
|
||||
import datetime
|
||||
if store:
|
||||
try:
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
<?cs call:handle_messages() ?>
|
||||
|
||||
<?cs call:print_form_header("set_date", "plugins/date") ?>
|
||||
<?cs call:print_form_header("set_date", "date") ?>
|
||||
|
||||
<p><label for="date"><?cs var:html_escape(Lang.Plugins.date.Text.Date) ?>: </label><br/>
|
||||
<select name="day" tabindex="1" size="0"><?cs
|
||||
<select id="date" name="day" tabindex="1" size="0"><?cs
|
||||
loop: x = #1, #31, #1 ?>
|
||||
<?cs if:x == Data.Plugins.date.day ?><option selected="selected"><?cs
|
||||
else ?><option><?cs /if ?><?cs var:x ?></option><?cs /loop ?>
|
||||
|
@ -25,7 +25,7 @@
|
|||
</select></p>
|
||||
|
||||
<p><label for="time"><?cs var:html_escape(Lang.Plugins.date.Text.Time) ?>: </label><br/>
|
||||
<select name="hour" tabindex="4" size="0"><?cs
|
||||
<select id="time" name="hour" tabindex="4" size="0"><?cs
|
||||
loop: x = #0, #23, #1 ?>
|
||||
<?cs if:x == Data.Plugins.date.hour ?><option selected="selected"><?cs
|
||||
else ?><option><?cs /if ?><?cs if:x<10 ?>0<?cs /if ?><?cs var:x ?></option><?cs /loop ?>
|
||||
|
|
|
@ -23,7 +23,7 @@ class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|||
|
||||
|
||||
def _getCurrentDate(self):
|
||||
date_url = self.URL + "plugins/date"
|
||||
date_url = self.URL + "date"
|
||||
self.register_auth(date_url)
|
||||
self.cmd.go(date_url)
|
||||
self.cmd.find("Data.Status.Plugins.date=([0-9]+/[0-9]+/[0-9]+/[0-9]+/[0-9]+/[0-9]+)$", "m")
|
||||
|
@ -40,7 +40,15 @@ class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|||
|
||||
|
||||
def _setDate(self, date):
|
||||
date_url = self.URL + "plugins/date"
|
||||
"""for now we have to use this function instead of the one below"""
|
||||
date_url = self.URL + "date?store=1&year=%d&month=%d&day=%d&hour=%d&minute=%d" % (date["year"], date["month"], date["day"], date["hour"], date["minute"])
|
||||
self.register_auth(date_url)
|
||||
self.cmd.go(date_url)
|
||||
|
||||
|
||||
def _setDateBroken(self, date):
|
||||
"""this should work, but the parsing of twill seems to be broken"""
|
||||
date_url = self.URL + "date"
|
||||
self.register_auth(date_url)
|
||||
self.cmd.go(date_url)
|
||||
self.cmd.formvalue("set_date", "year", str(date["year"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue