Bug #6647

Exception in eints

Added by eints almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:2013-12-11
Priority:NormalDue date:
Assignee:frosch% Done:


Target version:-


Traceback (most recent call last):
File "/home/eints/eints/webtranslate/bottle.py", line 764, in _handle
return route.call(**args)
File "/home/eints/eints/webtranslate/bottle.py", line 1600, in wrapper
rv = callback(*a, **ka)
File "/home/eints/eints/webtranslate/protect.py", line 39, in wrapper
return func(userauth, *a, **ka)
File "/home/eints/eints/webtranslate/pages/string_edit.py", line 456, in str_form
return output_string_edit_page(bchg, binfo, lng, prjname, pmd.pdata, lngname, sname, None)
File "/home/eints/eints/webtranslate/pages/string_edit.py", line 446, in output_string_edit_page
lname = lngname, sname = sname, tcs = transl_cases)
File "/home/eints/eints/webtranslate/bottle.py", line 3145, in template
return TEMPLATES[tplid].render(kwargs)
File "/home/eints/eints/webtranslate/bottle.py", line 3118, in render
self.execute(stdout, kwargs)
File "/home/eints/eints/webtranslate/bottle.py", line 3106, in execute
eval(self.co, env)
File "/home/eints/eints/views/string_form.tpl", line 61, in <module>
<p>Previous base language text:<br />{{utils.create_displayed_base_text(pdata, tc.transl0.trans_base.text)}}</p>
File "/home/eints/eints/webtranslate/utils.py", line 184, in create_displayed_base_text
text = text.text
AttributeError: 'str' object has no attribute 'text'

Associated revisions

Revision 367:930a9edf376d
Added by frosch almost 6 years ago

Fix #6647: create_displayed_base_text expects a Text instance, not a string.


#1 Updated by frosch almost 6 years ago

  • Project changed from DevZone Help Center to Webtranslator

#2 Updated by frosch almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Also available in: Atom PDF