-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
Today I decided to try tgext.menu for my existing application.
Installation went smoothly, and it seems to work as long as I only use
ascii characters.
In my controller, I have:
@sidebar(u'Téléphones')
@expose('genshi:astportal2.templates.grid_phone')
def get_all(self):
I'm using Genshi, and have included the following line in the master
template I have included: ${HTML(render_sidebar())}.
I get the following error:
File
'/home/SysNux/Projets/astportal21/astportal2/templates/master.html',
line 81 in <Expression u'HTML(render_sidebar())'>
${HTML(render_sidebar())}
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/tgext.menu-1.0b3-py2.6.egg/tgext/menu/functions.py',
line 117 in render_sidebar
return render_menu(u'sidebar', vertical, active)
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/tgext.menu-1.0b3-py2.6.egg/tgext/menu/functions.py',
line 111 in render_menu
return divmenu.render(menulist=menutree, name=menuname,
vertical_menu=vertical)
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/template.py',
line 189 in render
return runtime._render(self, self.callable_, args, data)
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/runtime.py',
line 403 in _render
_render_context(template, callable_, context, *args,
**_kwargs_for_callable(callable_, data))
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/runtime.py',
line 434 in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/runtime.py',
line 457 in _exec_template
callable_(context, *args, **kwargs)
File 'memory:0x7fed40262690', line 84 in render_body
File 'memory:0x7fed40262690', line 74 in writeList
File
'/home/SysNux/tg21_64/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/runtime.py',
line 82 in write
self._buffer_stack[-1].write(string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 52: ordinal not in range(128)
Also, I don't understand why mako is involved.
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk1WES0ACgkQuu7Rv+oOo/iOkgCdEY1j6bmUumUIlsvMLvUuM6Zt
f9gAn20AwShSP5/452Bfr/m7wMAK3AAu
=Dcbc
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.