From e6c91f2d183430cbea4a642c5f160bef147358b3 Mon Sep 17 00:00:00 2001 From: Mike khiretskiy Date: Tue, 8 Oct 2013 13:51:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B5=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B2=D1=8B=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=20=D0=BD=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D1=84=D0=B5=D0=B9=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/variables/net.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/variables/net.py b/install/variables/net.py index d5cec22..fa3e28b 100644 --- a/install/variables/net.py +++ b/install/variables/net.py @@ -155,6 +155,13 @@ class VariableOsInstallNetData(NetHelper,TableVariable): self.help = _("Network interface, DHCP or IP address and network mask " "(example: %s)")%" --iface eth0:192.168.1.1:24" + def raiseReadonlyIndexError(self,fieldname="",variablename="", + value=""): + """ + Behavior on change readonly index + """ + raise VariableError(_("Network interface %s not found")%value) + class VariableOsInstallNetHostname(NetHelper,Variable): """ Computer hostname