I just updated my turbogears to 1.0.3 with setuptools and now some code
I got off the list doesn't work anymore. Unfortunately it's not an area
I understand properly ...

I had the following at the top of my controllers.py file to allow
unescaped html:

outputformat = kid.HTMLSerializer(doctype='html')
outputformat.noescape_elements.add('div')
tg.config.update({'kid.outputformat': outputformat})

After updating that causes the following traceback:
 File
"/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/turbogears/controllers.py",
 line 359, in <lambda>
    mapping, fragment, args, kw)))
  File 
"/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/turbogears/controllers.py",
 line 399, in _execute_func
    return _process_output(output, template, format, content_type, mapping, 
fragment)
  File 
"/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/turbogears/controllers.py",
 line 86, in _process_output
    fragment=fragment)
  File 
"/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/turbogears/view/base.py",
 line 129, in render
    return engine.render(**kw)
  File 
"/usr/lib/python2.4/site-packages/TurboKid-1.0.2-py2.4.egg/turbokid/kidsupport.py",
 line 186, in render
    if len(format) < 2:
TypeError: len() of unsized object


If anyone can tell what I should now do to set the serializer and the output 
format for both widget code and regular templates that would be much 
appreciated!

Iain



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