recuPaiement est un generalizedTimeFormat
This commit is contained in:
parent
dae802b057
commit
d1eb555599
1 changed files with 4 additions and 1 deletions
|
@ -640,6 +640,9 @@ class generalizedTimeFormat(Attr):
|
||||||
__slots__ = ("_stamp", "_datetime",)
|
__slots__ = ("_stamp", "_datetime",)
|
||||||
default = "19700101000000Z"
|
default = "19700101000000Z"
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self._datetime.strftime("%d/%m/%Y %H:%M:%S")
|
||||||
|
|
||||||
def __float__(self):
|
def __float__(self):
|
||||||
return self._stamp
|
return self._stamp
|
||||||
|
|
||||||
|
@ -1686,7 +1689,7 @@ class modePaiement(Attr):
|
||||||
self.value = mode
|
self.value = mode
|
||||||
|
|
||||||
@crans_attribute
|
@crans_attribute
|
||||||
class recuPaiement(Attr):
|
class recuPaiement(generalizedTimeFormat):
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
ldap_name = "recuPaiement"
|
ldap_name = "recuPaiement"
|
||||||
can_modify = [cableur, nounou]
|
can_modify = [cableur, nounou]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue