Hi guys

I am following the tutorial from "Using ToscaWidgets to create Forms" [1],
and I am getting the following error:

AttributeError: 'str' object has no attribute 'form'

just after my statement:

        pylons.c.w.form = create_movie_form


If I change this line to:

        pylons.c.w = dict()
        pylons.c.w['form'] = create_movie_form


Everything runs ok (the template has ``${tmpl_context.w.form()}``  inside it)

So, what should be pylons.c.w ? a Bunch ? Who defines it ?
I see mod/pylonshf.py from ToscaWidgets making use of
``getattr(pylons.c, 'w', None)``,
but I couldn't find any initial setup of this object ``w``.


Cheers,

Roger



[1] - http://turbogears.org/2.0/docs/main/ToscaWidgets/forms.html

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

Reply via email to