pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/ 0000775 0000000 0000000 00000000000 14042356110 0022456 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/ 0000775 0000000 0000000 00000000000 14042356110 0024126 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/razibus/ 0000775 0000000 0000000 00000000000 14042356110 0025605 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/razibus/__init__.py 0000664 0000000 0000000 00000001501 14042356110 0027713 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2014 Bezleputh
#
# This file is part of a woob module.
#
# This woob module 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.
#
# This woob module 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 this woob module. If not, see .
from .module import RazibusModule
__all__ = ['RazibusModule']
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/razibus/browser.py 0000664 0000000 0000000 00000003433 14042356110 0027645 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2014 Bezleputh
#
# This file is part of a woob module.
#
# This woob module 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.
#
# This woob module 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 this woob module. If not, see .
from woob.browser import PagesBrowser, URL
from .pages import EventListPage, EventPage
__all__ = ['RazibusBrowser']
class RazibusBrowser(PagesBrowser):
BASEURL = 'http://razibus.net/'
TIMEOUT = 20
event_list_page = URL('evenements-a-venir.php\?region=(?P.*)', EventListPage)
event_page = URL('(?P<_id>.*).html', EventPage)
region = None
def __init__(self, region, *args, **kwargs):
super(RazibusBrowser, self).__init__(*args, **kwargs)
self.region = region
def get_event(self, _id, event=None):
return self.event_page.go(_id=_id).get_event(obj=event)
def list_events(self, date_from, date_to, city=None, categories=None):
return self.event_list_page.go(region=self.region).list_events(date_from=date_from,
date_to=date_to,
city=city,
categories=categories)
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/razibus/calendar.py 0000664 0000000 0000000 00000002177 14042356110 0027737 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of a woob module.
#
# This woob module 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.
#
# This woob module 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 this woob module. If not, see .
from woob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATEGORIES
class RazibusCalendarEvent(BaseCalendarEvent):
def __init__(self):
BaseCalendarEvent.__init__(self)
self.sequence = 1
self.transp = TRANSP.TRANSPARENT
self.status = STATUS.CONFIRMED
self.category = CATEGORIES.CONCERT
self.timezone = 'Europe/Paris'
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-razibus/modules/razibus/favicon.png 0000664 0000000 0000000 00000007670 14042356110 0027752 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ R tEXtSoftware Adobe ImageReadyqe<