added some basic unittests
changed warning/success message system to a new style unified design of "hints" in form interfaces fixed small bugs in "network" and "partition" plugin interfaces "partition" and "disks" plugins: show blockdevice size during device selection german translation for "disks" plugin added
This commit is contained in:
parent
29d2e442f2
commit
c35e204a7b
34 changed files with 197 additions and 57 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
<h1><?cs var:html_escape(Lang.Plugins.network.Title.Network) ?></h1>
|
||||
|
||||
<?cs call:handle_messages() ?>
|
||||
|
||||
<?cs call:print_form_header("set_ip", "plugins/network") ?>
|
||||
|
||||
<p><label for="ip"><?cs var:html_escape(Lang.Plugins.network.Text.IP) ?>: </label>
|
||||
|
@ -24,3 +26,5 @@
|
|||
|
||||
</form>
|
||||
|
||||
<?cs call:help_link("CryptoBoxUserConfiguration") ?>
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ class network(CryptoBoxPlugin.CryptoBoxPlugin):
|
|||
ip = "%d.%d.%d.%d" % (int(ip1), int(ip2), int(ip3), int(ip4))
|
||||
except ValueError:
|
||||
self.hdf["Data.Warning"] = "Plugins.network.InvalidIP"
|
||||
return None
|
||||
self.__prepareFormData()
|
||||
return "form_network"
|
||||
if self.__setIP(ip):
|
||||
self.cbox.log.info("the IP was successfully changed: %s" % ip)
|
||||
self.hdf["Data.Success"] = "Plugins.network.IPChanged"
|
||||
|
|
|
@ -4,7 +4,7 @@ from network import CHANGE_IP_DELAY
|
|||
|
||||
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
||||
|
||||
def atest_ip_change(self):
|
||||
def test_ip_change(self):
|
||||
'''change of network address'''
|
||||
## the time module is necessary for the CHANGE_IP_DELAY
|
||||
import time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue