-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/02/2011 06:43, Michael Pedersen wrote:
> I've never used Unicode, so I'm not a good help here at all. If you can
> devise a test case and/or patch that I can apply to tgext.menu, I will
> gladly do so, and get it straightened out. Otherwise, please file a bug
> report at https://bitbucket.org/pedersen/tgext.menu/issues and I will
> get to work on that once we complete the migration to SF.net and get
> code rolling again.

It seems calling "render_unicode" instead of "render" in
tgext/menu/functions.py works for me; see
http://www.makotemplates.org/docs/usage.html#using-unicode-and-encoding

Line 111 becomes:
return divmenu.render_unicode(menulist=menutree, name=menuname,
vertical_menu=vertical)

Do you want me to file a bug?

> As for why Mako is being used: tgext.menu has to render HTML. Mako does
> a great job with that. So, tgext.menu calls Mako to do the actual HTML
> rendering, and returns raw HTML to the main page. In this way, it also
> doesn't care at all what rendering engine you are using, or have any
> interaction with it.

Ok, thanks for explanation, and great extension!


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-----

iEYEARECAAYFAk1W9/UACgkQuu7Rv+oOo/iFwwCeNa0gEiVd/NzF1QqboeDgY2zj
msAAn12blwpkqWNpX+wc7klmCMZpHDW4
=mrRT
-----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.

Reply via email to