From 2d809f9726fb0e1d50f95e94ee5a0bcbed1d6048 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Thu, 3 Sep 2009 16:53:04 +0200 Subject: [PATCH] [gestion/ldap_crans.py] pas de typeclasses en python Ignore-this: e338bd6923ca9f39b8044745625211d9 darcs-hash:20090903145304-bd074-d94ccd2cc355f2338819ccc91c505d86bf4c789b.gz --- gestion/ldap_crans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index bfa1016c..02691dd5 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -539,7 +539,7 @@ class CransLdap: # Conversion avant stockage dans la base if type(args) == str: args = [args] args = map(lambda x:preattr(x)[1], args) - if type(start) == int: start = [start] + if type(start) in [int, float]: start = [start] start = map(lambda x:preattr(x)[1], start) if new in serv.keys():