Fix wordereference

close #840 #1036
This commit is contained in:
Florent 2013-01-09 15:37:35 +01:00
commit e34a6a5d5c

View file

@ -28,5 +28,7 @@ class TranslatePage(BasePage):
def get_translation(self):
for tr in self.document.getiterator('tr'):
if tr.attrib.get('class','') == 'odd' or tr.attrib.get('class','') == 'even':
return u''+tr.getchildren()[0].getchildren()[0].text
for td in tr.getiterator('td'):
if td.attrib.get('class','') == 'ToWrd':
return u''+td.text