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:
lars 2006-11-06 06:17:22 +00:00
parent 7905fe7051
commit 80337411ae
49 changed files with 259 additions and 116 deletions

View file

@ -7,12 +7,26 @@ Button.Format = Initialize filesystem
Text {
Confirm = Yes, I know what I am doing!
FormatWarning = All data of the selected filesystem will get lost!
FSType = Filesystem type
IsEncrypted = Encryption
Yes = Yes
No = No
UnmountBeforeInit = You must deactivate this volume before you may initialize it.
}
AdviceMessage {
FormatWarning {
Text = All data of the selected filesystem will get lost!
}
UnmountBeforeInit {
Text = You must deactivate this volume before you may initialize it.
Link.Text = Deactive volume now
Link.Rel = volume_mount
Link.Attr1.name = action
Link.Attr1.value = umount
Link.Attr2.name = redirect
Link.Attr2.value = format_fs
}
}
SuccessMessage {

View file

@ -3,7 +3,7 @@ import WebInterfaceTestClass
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
def test_read_form(self):
url = self.URL + "plugins/format_fs?weblang=en&device=%2Fdev%2Floop1"
url = self.URL + "format_fs?weblang=en&device=%2Fdev%2Floop1"
self.register_auth(url)
self.cmd.go(url)
self.cmd.find('Initializing filesystem')

View file

@ -7,13 +7,12 @@
<?cs call:handle_messages() ?>
<?cs if:Data.CurrentDisk.active ?>
<?cs call:hint(Lang.Plugins.format_fs.Text.UnmountBeforeInit) ?>
<?cs call:hint("Plugins.format_fs.UnmountBeforeInit") ?>
<?cs else ?>
<?cs call:print_form_header("set_type", "plugins/format_fs") ?>
<?cs call:hint(Lang.Plugins.format_fs.Text.FormatWarning) ?>
<?cs call:hint("Plugins.format_fs.FormatWarning") ?>
<?cs call:print_form_header("set_type", "format_fs") ?>
<p><label for="fs_type"><?cs var:html_escape(Lang.Plugins.format_fs.Text.FSType)
?>: </label><select name="fs_type" id="fs_type" size="0">
<?cs each:x = Data.Plugins.format_fs.fs_types ?>

View file

@ -7,13 +7,12 @@
<?cs call:handle_messages() ?>
<?cs if:Data.CurrentDisk.active ?>
<?cs call:hint(Lang.Plugins.format_fs.Text.UnmountBeforeInit) ?>
<?cs call:hint("Plugins.format_fs.UnmountBeforeInit") ?>
<?cs else ?>
<?cs call:print_form_header("set_luks", "plugins/format_fs") ?>
<?cs call:hint(Lang.Plugins.format_fs.Text.FormatWarning) ?>
<?cs call:hint("Plugins.format_fs.FormatWarning") ?>
<?cs call:print_form_header("set_luks", "format_fs") ?>
<p><?cs var:html_escape(Lang.Plugins.format_fs.Text.FSType) ?>: <?cs var:html_escape(Data.Plugins.format_fs.fs_type) ?></p>
<p><?cs var:html_escape(Lang.Plugins.format_fs.Text.IsEncrypted) ?>: <?cs if:Data.Plugins.format_fs.container_type == "luks" ?><?cs
var:html_escape(Lang.Plugins.format_fs.Text.Yes) ?><?cs else ?><?cs