From 158d3fb6276466e171b57f8b445468e48f67c9c9 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Fri, 29 Aug 2014 19:26:00 +0200 Subject: [PATCH] [CapTravel] brwser2 adaptation : do not require an id in costructor --- weboob/capabilities/travel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/capabilities/travel.py b/weboob/capabilities/travel.py index 4be332c0..b16f4474 100644 --- a/weboob/capabilities/travel.py +++ b/weboob/capabilities/travel.py @@ -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