diff --git a/modules/biplan/calendar.py b/modules/biplan/calendar.py index b53ac4a0..4c36ff95 100644 --- a/modules/biplan/calendar.py +++ b/modules/biplan/calendar.py @@ -22,11 +22,13 @@ from weboob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATE class BiplanCalendarEvent(BaseCalendarEvent): - city = 'LILLE' - location = '19, rue Colbert' - sequence = 1 - transp = TRANSP.TRANSPARENT - status = STATUS.CONFIRMED + def __init__(self, _id): + BaseCalendarEvent.__init__(self, _id) + self.city = u'LILLE' + self.location = u'19, rue Colbert' + self.sequence = 1 + self.transp = TRANSP.TRANSPARENT + self.status = STATUS.CONFIRMED @classmethod def id2url(cls, _id): @@ -34,8 +36,12 @@ class BiplanCalendarEvent(BaseCalendarEvent): class BiplanCalendarEventConcert(BiplanCalendarEvent): - category = CATEGORIES.CONCERT + def __init__(self, _id): + BiplanCalendarEvent.__init__(self, _id) + self.category = CATEGORIES.CONCERT class BiplanCalendarEventTheatre(BiplanCalendarEvent): - category = CATEGORIES.THEATRE + def __init__(self, _id): + BiplanCalendarEvent.__init__(self, _id) + self.category = CATEGORIES.THEATRE diff --git a/modules/hybride/calendar.py b/modules/hybride/calendar.py index d85694a0..e7f32496 100644 --- a/modules/hybride/calendar.py +++ b/modules/hybride/calendar.py @@ -21,13 +21,14 @@ from weboob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATE class HybrideCalendarEvent(BaseCalendarEvent): - - location = '18 rue Gosselet' - city = 'Lille' - sequence = 1 - transp = TRANSP.TRANSPARENT - status = STATUS.CONFIRMED - category = CATEGORIES.CINE + def __init__(self, _id): + BaseCalendarEvent.__init__(self, _id) + self.location = u'18 rue Gosselet' + self.city = u'Lille' + self.sequence = 1 + self.transp = TRANSP.TRANSPARENT + self.status = STATUS.CONFIRMED + self.category = CATEGORIES.CINE @classmethod def id2url(cls, _id):