[biplan] fix bugs

This commit is contained in:
Bezleputh 2014-05-16 15:19:49 +02:00
commit 51ddda4bf9
4 changed files with 19 additions and 6 deletions

View file

@ -85,7 +85,8 @@ class ProgramPage(HTMLPage):
item_xpath = '//div[@class="ligne"]'
class item(ItemElement):
klass = BiplanCalendarEventConcert if Env('is_concert') else BiplanCalendarEventTheatre
def klass(self):
return BiplanCalendarEventConcert() if self.env['is_concert'] else BiplanCalendarEventTheatre()
def condition(self):
return (self.el.xpath('./div'))