Diez B. Roggisch wrote:
Christoph Zwerschke wrote:
In Kid 0.9.3, the output format 'html' renders upper case tags only. You
have to use a custom HTMLSerializer where you set the transpose
attribute to False if you want lowercase tags.

I need to correct myself. In 0.9.3 you have to set the transpose attribute to string.lower, not False.

Since Kid 0.9.4, Kid outputs lower case tags if you use the output
format 'html' and upper case tags if you use the output format 'HTML'
(which did not exist in Kid 0.9.3).

Currently I'm running 0.9.3, with TG 1.01b. Is it possible to upgrade without major hassle?
And if so, where do I configure the serializer used?

Kid 0.9.4 has a few issues: You need to remove all old compiled kid templates (.pyc files in template directories) when upgrading, and there are two or three bugs which may hurt you in certain situations.

All of this has been fixed already and I hope Kid 0.9.5 will be out very soon, because it also brings a couple of other improvements, e.g. reporting the error location in the original .kid template (not only in the compiled .pyc file as before).

As a quick solution with Kid 0.9.3, you can also use the following code at the beginning of your controller.py file:

import kid
outputformat = kid.HTMLSerializer(doctype='html')
outputformat.transpose = lambda x: x.lower()
from turbogears import config
config.update({'kid.outputformat': outputformat})

You may also consider producing XHTML instead of HTML by setting kid.outputformat = 'xhtml' in your configfile.

With Kid 0.9.4 an higher, you would simply set kid.outputformat = 'html' or kid.outputformat = 'HTML' in the config file to indicate whether you want HTML with lower case or upper case tags.

-- Christoph

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