From b2c9f6632fac847577a52e23aa56a1f0816b1927 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Fri, 2 Sep 2005 13:39:12 +0000 Subject: add digitCount to init add some code for navigate in ConfigSequence -pls check this, actual its more an ip field and not very flexible -perhaps nav in field is better done in C++? --- lib/python/Components/Network.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/python/Components/Network.py') diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index ab89d3c6..3740e51b 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -23,10 +23,10 @@ class Network: def InitNetwork(): config.network = ConfigSubsection() - config.network.ip = configElement("config.network.ip", configSequence, [192,168,1,45], (".")) - config.network.gateway = configElement("config.network.gateway", configSequence, [192,168,1,3], (".")) - config.network.dns = configElement("config.network.dns", configSequence, [192,168,1,3], (".")) - config.network.mac = configElement("config.network.mac", configSequence, [00,11,22,33,44,55], (":")) + config.network.ip = configElement("config.network.ip", configSequence, [192,168,1,45], (("."), 3)) + config.network.gateway = configElement("config.network.gateway", configSequence, [192,168,1,3], (("."), 3)) + config.network.dns = configElement("config.network.dns", configSequence, [192,168,1,3], (("."), 3)) + config.network.mac = configElement("config.network.mac", configSequence, [00,11,22,33,44,55], ((":"), 2)) iNetwork = Network() -- cgit v1.2.3