On Jul 3, 6:44 pm, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Matt Wilson schrieb:
>
> > content_format = content_format.split()[0].split('-' , 1)[0]
> > AttributeError: 'HTMLSerializer' object has no attribute 'split'
>
> The problem seems to be that you set your kid.format not to as 'html'
> but as a HTMLSerializer object, which is actually possible, but the
> problem is that TG 1.0.5 tries to derive the content type from the
> format and fails here if the format is not a string.
I have no idea how I did that. My app.cfg is from a TG project I
started a year ago. Maybe the cfg files changed since then?
I found this in my app.cfg:
# The commented out values below are the defaults
<snip>
# One of (html|xml|json)
# kid.outputformat="html"
I've tried running my app after removing the comment in front of
kid.outputformat = "html" and I've also added a line kid.format =
"html" and still got the error.
How do I set my kid.format?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---