pax_global_header 0000666 0000000 0000000 00000000064 13414430553 0014514 g ustar 00root root 0000000 0000000 52 comment=6e2147adbb0d685e8e740a246e0c7f31465f3511
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/ 0000775 0000000 0000000 00000000000 13414430553 0022227 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/ 0000775 0000000 0000000 00000000000 13414430553 0023677 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/biplan/ 0000775 0000000 0000000 00000000000 13414430553 0025144 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/biplan/__init__.py 0000664 0000000 0000000 00000001432 13414430553 0027255 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from .module import BiplanModule
__all__ = ['BiplanModule']
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/biplan/browser.py 0000664 0000000 0000000 00000004244 13414430553 0027205 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.browser import PagesBrowser, URL
from .pages import ProgramPage, EventPage
__all__ = ['BiplanBrowser']
class BiplanBrowser(PagesBrowser):
BASEURL = 'https://www.lebiplan.org'
program_page = URL('/fr/biplan-prog-(?P<_category>.*).php', ProgramPage)
event_page = URL('/(?P<_id>.*).html', EventPage)
def list_events_concert(self, date_from, date_to=None, city=None, categories=None):
return self.program_page.go(_category='concert').list_events(date_from=date_from,
date_to=date_to,
city=city,
categories=categories,
is_concert=True)
def list_events_theatre(self, date_from, date_to=None, city=None, categories=None):
return self.program_page.go(_category='theatre').list_events(date_from=date_from,
date_to=date_to,
city=city,
categories=categories,
is_concert=False)
def get_event(self, _id, event=None):
return self.event_page.go(_id=_id).get_event(obj=event)
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/biplan/calendar.py 0000664 0000000 0000000 00000002707 13414430553 0027275 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATEGORIES
class BiplanCalendarEvent(BaseCalendarEvent):
def __init__(self):
BaseCalendarEvent.__init__(self)
self.city = u'LILLE'
self.location = u'19, rue Colbert'
self.sequence = 1
self.transp = TRANSP.TRANSPARENT
self.status = STATUS.CONFIRMED
self.timezone = u'Europe/Paris'
class BiplanCalendarEventConcert(BiplanCalendarEvent):
def __init__(self):
BiplanCalendarEvent.__init__(self)
self.category = CATEGORIES.CONCERT
class BiplanCalendarEventTheatre(BiplanCalendarEvent):
def __init__(self):
BiplanCalendarEvent.__init__(self)
self.category = CATEGORIES.THEATRE
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-biplan/modules/biplan/favicon.png 0000664 0000000 0000000 00000040312 13414430553 0027277 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq pHYs cHRM z% u0 ` : o_F @PIDATx @@
GGG
$$$ """ '''*** $$$ """
### 333 000 !!! $$$
))) """ >>>
GGG %%% +++ %%%
))) ### """
,,, """
''' $$$
444
999 777 %%% ... ((( ### ###
$$$
<<<