Matt Wilson wrote:
> Specifically, this line in the render function kidsupport.py blows up
> with a traceback about "unsized object":
> 
>         if len(format) < 2:
> 
> format is the kid HTML serializer, and it seems that you can't take
> the length of it.

Do you set format (kid.outputformat) to something different from a 
string in your config or your expose method? I just noticed that when 
you set it to a Kid Serializer instance, then this can happen.

As an explanation, the format parameter now actually expects a tuple 
(output, format) where output is a Kid Serializer instance and format is 
a Kid Format instance. Both can also be strings referencing some common 
predefined instances, e.g. ('xhtml', 'default'). If you're using 
strings, you can also pass 'xhtml default' or just 'xhtml' instead of 
the tuple. However, TurboKid currently is screwed by just passing a 
serializer. I'll fix that in the next release. As a workaround, pass a 
tuple, explicitly defining your format ('default' if you don't care). 
Don't downgrade TurboKid, since the new version also includes a bugfix.

-- ChrisZ

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