[CapTravel] brwser2 adaptation : do not require an id in costructor

This commit is contained in:
Bezleputh 2014-08-29 19:26:00 +02:00
commit 158d3fb627

View file

@ -32,7 +32,7 @@ class Station(BaseObject):
"""
name = StringField('Name of station')
def __init__(self, id, name):
def __init__(self, id=None, name=None):
BaseObject.__init__(self, id)
self.name = name
@ -55,7 +55,7 @@ class Departure(BaseObject):
price = DecimalField('Price of ticket')
currency = StringField('Currency', default=None)
def __init__(self, id, _type, _time):
def __init__(self, id=None, _type=None, _time=None):
BaseObject.__init__(self, id)
self.type = _type