recuPaiement est un generalizedTimeFormat

This commit is contained in:
Pierre-Elliott Bécue 2015-09-26 00:43:22 +02:00
parent dae802b057
commit d1eb555599

View file

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