several fixes

This commit is contained in:
Romain Bignon 2010-08-12 18:04:20 +02:00
commit af08bd0eeb
4 changed files with 10 additions and 5 deletions

View file

@ -62,8 +62,8 @@ class Account(CapBaseObject):
class Operation(CapBaseObject):
FIELDS = ('date', 'label', 'amount')
def __init__(self):
CapBaseObject(self, 0)
def __init__(self, id):
CapBaseObject.__init__(self, id)
self.date = None
self._label = u''
self._amount = 0.0