[lc_ldap, attributs] Oublis
This commit is contained in:
parent
215f01c281
commit
4d550e734b
2 changed files with 10 additions and 11 deletions
|
@ -45,6 +45,8 @@ import config
|
|||
import config.impression
|
||||
import annuaires_pg
|
||||
import smtplib
|
||||
import random
|
||||
import string
|
||||
|
||||
### SMTP
|
||||
smtpserv = "smtp.crans.org"
|
||||
|
@ -634,13 +636,12 @@ class ipsec(Attr):
|
|||
category = 'wifi'
|
||||
|
||||
def parse_value(self, val):
|
||||
val = str(val)
|
||||
if len(val) == 10:
|
||||
self.value = val
|
||||
else:
|
||||
val = 'auto'
|
||||
if val == "auto":
|
||||
selv.value = ''.join( random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) + filter(lambda x: x != '1' and x != '0', string.digits)) for i in range(10))
|
||||
val = u'auto'
|
||||
if val == u"auto":
|
||||
self.value = u''.join( random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) + filter(lambda x: x != '1' and x != '0', string.digits)) for i in range(10))
|
||||
|
||||
class puissance(Attr):
|
||||
singlevalue = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue