From 6fffbd7bd3f6d7dccdb89c082ebb5e15bb64584e Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 14 Feb 2014 02:20:10 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20Type=20python=20=C3=A0=20int=20po?= =?UTF-8?q?ur=20la=20classe=20responsable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index d25b22d..50fe3e5 100644 --- a/attributs.py +++ b/attributs.py @@ -990,6 +990,7 @@ class responsable(Attr): category = 'perso' can_modify = [cableur, nounou] ldap_name = "responsable" + python_type = int # en vrai, c'est l'aid du responsable def nonefunction(self, resp): """ @@ -1020,7 +1021,7 @@ class responsable(Attr): value = property(get_respo, nonefunction) def __unicode__(self): - return self.__value + return unicode(self.__value) @crans_attribute class imprimeurClub(Attr):