move select() in parser

This commit is contained in:
Romain Bignon 2011-04-08 19:39:57 +02:00
commit 9afb301ebe
30 changed files with 197 additions and 197 deletions

View file

@ -19,7 +19,7 @@
from weboob.tools.browser import BasePage
from weboob.tools.parsers.lxmlparser import select
__all__ = ['XMLinfos']
@ -28,7 +28,7 @@ __all__ = ['XMLinfos']
class XMLinfos(BasePage):
def get_current(self):
try:
for channel in select(self.document.getroot(), 'channel'):
for channel in self.parser.select(self.document.getroot(), 'channel'):
title = channel.find('item/song_title').text
artist = channel.find('item/artist_name').text
except AttributeError: