[lc_ldap, attributs] Oublis

This commit is contained in:
Valentin Samir 2013-05-08 04:05:04 +02:00
parent 215f01c281
commit 4d550e734b
2 changed files with 10 additions and 11 deletions

View file

@ -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