diff --git a/attributs.py b/attributs.py index 5687bce..ddb56ae 100644 --- a/attributs.py +++ b/attributs.py @@ -640,6 +640,9 @@ class generalizedTimeFormat(Attr): __slots__ = ("_stamp", "_datetime",) default = "19700101000000Z" + def __unicode__(self): + return self._datetime.strftime("%d/%m/%Y %H:%M:%S") + def __float__(self): return self._stamp @@ -1686,7 +1689,7 @@ class modePaiement(Attr): self.value = mode @crans_attribute -class recuPaiement(Attr): +class recuPaiement(generalizedTimeFormat): __slots__ = () ldap_name = "recuPaiement" can_modify = [cableur, nounou]