oops fix build of browser
This commit is contained in:
parent
84b4003bf4
commit
b2921d0dc2
2 changed files with 5 additions and 4 deletions
|
|
@ -23,8 +23,8 @@ from weboob.tools.misc import to_unicode
|
||||||
class CanalTP(BaseBrowser):
|
class CanalTP(BaseBrowser):
|
||||||
DOMAIN = 'widget.canaltp.fr'
|
DOMAIN = 'widget.canaltp.fr'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, **kwargs):
|
||||||
BaseBrowser.__init__(self, '')
|
BaseBrowser.__init__(self, '', **kwargs)
|
||||||
|
|
||||||
def iter_station_search(self, pattern):
|
def iter_station_search(self, pattern):
|
||||||
url = u'http://widget.canaltp.fr/Prochains_departs_15122009/dev/gare.php?txtrech=%s' % unicode(pattern)
|
url = u'http://widget.canaltp.fr/Prochains_departs_15122009/dev/gare.php?txtrech=%s' % unicode(pattern)
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,9 @@ class Transilien(BaseBrowser):
|
||||||
'http://www\.transilien\.com/web/ITProchainsTrains\.do\?.*': RoutePage
|
'http://www\.transilien\.com/web/ITProchainsTrains\.do\?.*': RoutePage
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, **kwargs):
|
||||||
BaseBrowser.__init__(self, '', parser=Parser())
|
kwargs['parser'] = Parser()
|
||||||
|
BaseBrowser.__init__(self, '', **kwargs)
|
||||||
|
|
||||||
def iter_station_search(self, pattern):
|
def iter_station_search(self, pattern):
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue