[gestion/ldap_crans.py] tester ses modifications, c'est surfait

darcs-hash:20090903160740-bd074-554b97d1e800b12757f77ed275632f0a193da53f.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-09-03 18:07:40 +02:00
parent 40c3bc8dc6
commit 94ae1b0243

View file

@ -539,7 +539,7 @@ class CransLdap:
# Conversion avant stockage dans la base # Conversion avant stockage dans la base
if type(args) == str: args = [args] if type(args) == str: args = [args]
args = map(lambda x:preattr(x)[1], args) args = map(lambda x:preattr(x)[1], args)
if type(start) in [int, float]: start = [start] if type(start) in int: start = [start]
start = map(lambda x:preattr(x)[1], start) start = map(lambda x:preattr(x)[1], start)
if new in serv.keys(): if new in serv.keys():
@ -1701,7 +1701,7 @@ class BaseProprietaire(BaseClasseCrans):
if self.idn !='cid': if self.idn !='cid':
# Mail de bienvenue # Mail de bienvenue
self.services_to_restart('mail_bienvenue', [self.mail().encode('iso-8859-15')], start = time.time() + 600) self.services_to_restart('mail_bienvenue', [self.mail().encode('iso-8859-15')], start = int(time.time()) + 600)
else: else:
ret += coul(u"Modification %s effectuée avec succès." % self.Nom(), 'vert') ret += coul(u"Modification %s effectuée avec succès." % self.Nom(), 'vert')