[attributs] exemp est de type netaddr.IPNetwork
This commit is contained in:
parent
3809bfea8e
commit
64a1d9f0ec
1 changed files with 8 additions and 0 deletions
|
@ -1006,6 +1006,14 @@ class portUDPin(portAttr):
|
|||
class exempt(Attr):
|
||||
legend = u"Exemption vers une IP"
|
||||
ldap_name = "exempt"
|
||||
python_type = netaddr.IPNetwork
|
||||
|
||||
def parse_value(self, net):
|
||||
self.value = self.python_type(net)
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.value)
|
||||
|
||||
|
||||
@crans_attribute
|
||||
class nombrePrises(intAttr):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue