solde(): handle absence de solde
Et __float__ pour les attributs
This commit is contained in:
parent
5a158d7c5c
commit
9738d29d66
2 changed files with 4 additions and 1 deletions
|
@ -471,6 +471,9 @@ class floatAttr(Attr):
|
|||
def __unicode__(self):
|
||||
return unicode(self.value)
|
||||
|
||||
def __float__(self):
|
||||
return self.value
|
||||
|
||||
class boolAttr(Attr):
|
||||
__slots__ = ()
|
||||
python_type = bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue