Hi Jorge, I haven't seen any response to this. Can you open a ticket to make sure the problem doesn't get lost?
Thanks, Kevin On 16 Dec 2005 16:44:34 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote: > > > Hi! > > > Kid (or CherryPy, but I believe it is Kid) has fixed the problem of using HTML > entities withing the template, but the i18n module is still choking on those. > > Here's a traceback collecting the string to mount a potfile: > > ================================================================================ > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", > line 271, in run > main() > File > "/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", > line 502, in main > body = page_handler(*args, **cherrypy.request.paramMap) > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", > line 196, in newfunc > html, *args, **kw) > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/database.py", > line 174, in run_with_transaction > retval = func(*args, **kw) > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", > line 222, in _execute_func > output = func(self, *args, **kw) > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/toolbox/admi18n/__init__.py", > line 271, in string_collection > self.collect_string_for_files(files) > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/toolbox/admi18n/__init__.py", > line 233, in collect_string_for_files > pygettext.main() > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/toolbox/admi18n/pygettext.py", > line 676, in main > if os.path.splitext(filename)[-1].lower() == '.kid': > eater.extract_kid_strings() > File > "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/toolbox/admi18n/pygettext.py", > line 471, in extract_kid_strings > f = ElementTree(file=self.__curfile) > File > "/usr/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg/elementtree/ElementTree.py", > line 543, in __init__ > File > "/usr/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg/elementtree/ElementTree.py", > line 583, in parse > File > "/usr/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg/elementtree/ElementTree.py", > line 1242, in feed > File > "/usr/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg/elementtree/ElementTree.py", > line 1195, in _default > ExpatError: undefined entity ©: line 70, column 8 > ================================================================================ > > From the Expat Error, I believe I could try fixing that adding something on my > DTD... I'll try pointing to some local DTD to allow the validation, but since > neither Kid nor tidy choke on those, it should pass... > > > Be seeing you, > -- > Jorge Godoy <[EMAIL PROTECTED]> > > -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com

