[biplan + hybride] better specific classes declaration

This commit is contained in:
Bezleputh 2013-11-29 12:38:59 +01:00 committed by Florent
commit f6f723674f
2 changed files with 21 additions and 14 deletions

View file

@ -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

View file

@ -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):