[attributs] mail est multivalué, etudes est optionnel, et solde peut être <0
This commit is contained in:
parent
d1c026166d
commit
89a43cc49a
1 changed files with 5 additions and 8 deletions
13
attributs.py
13
attributs.py
|
@ -342,7 +342,7 @@ class derniereConnexion(intAttr):
|
|||
can_modify = []
|
||||
|
||||
class mail(Attr):
|
||||
singlevalue = True
|
||||
singlevalue = False
|
||||
optional = False
|
||||
unique = True
|
||||
legend = "Le mail de l'adhérent"
|
||||
|
@ -430,7 +430,7 @@ class contourneGreylist(boolAttr):
|
|||
|
||||
class etudes(Attr):
|
||||
singlevalue = False
|
||||
optional = False
|
||||
optional = True
|
||||
legend = u"Études"
|
||||
can_modify = [soi, cableur, nounou]
|
||||
category = 'perso'
|
||||
|
@ -499,8 +499,8 @@ class solde(Attr):
|
|||
|
||||
def parse_value(self, solde):
|
||||
# on évite les dépassements, sauf si on nous dit de ne pas vérifier
|
||||
if not (float(solde) >= config.impression.decouvert and float(solde) <= 1024.):
|
||||
raise ValueError("Solde invalide: %r" % solde)
|
||||
#if not (float(solde) >= config.impression.decouvert and float(solde) <= 1024.):
|
||||
# raise ValueError("Solde invalide: %r" % solde)
|
||||
self.value = solde
|
||||
|
||||
class dnsAttr(Attr):
|
||||
|
@ -1009,10 +1009,7 @@ class controle(Attr):
|
|||
def parse_value(self, ctrl):
|
||||
if ctrl not in [u"", u"c", u"p", u"cp", u"pc"]:
|
||||
raise ValueError("control peut prendre les valeurs [c][p]")
|
||||
if ctrl == u'cp':
|
||||
self.value = u'pc'
|
||||
else:
|
||||
self.value = ctrl
|
||||
self.value = ctrl
|
||||
|
||||
class fid(intAttr):
|
||||
legend = u"Id de facture"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue