Hey,
I did import widgets, and I do get a notice about missing template.
Nevertheless, it gives me an empty string object ('') and not a
TypeError on my TG1 installation.
This is the full error in tg-admin (ipython):
In [3]: a = widgets.Form()
In [4]: a.render()
/home/minimum/minimumtg/lib/python2.5/site-packages/TurboGears-1.1-
py2.5.egg/turbogears/widgets/base.py:253: UserWarning: Widget instance
'Form(name='form', action='', method='post', form_attrs={},
use_name=False, submit_text=None, disabled_fields=set([]),
convert=True)' has no template defined
warnings.warn("Widget instance '%r' has no template defined" % self)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/minimum/noaltg/noaltg/model.pyc in <module>()
----> 1
2
3
4
5
/home/minimum/minimumtg/lib/python2.5/site-packages/TurboGears-1.1-
py2.5.egg/turbogears/widgets/base.pyc in render(self, value, format,
**params)
299 """
300 elem = self.display(value, **params)
--> 301 t = PlainHTML(elements=elem)
302 return t.serialize(output=format, fragment=True)
303
TypeError: 'NoneType' object is not callable
I'm running the exact same code over the two installations.
Thank you.
Yo'av
On Oct 24, 11:35 pm, Christoph Zwerschke <[email protected]> wrote:
> Yo'av Moshe schrieb:
>
> > I did some checks, and found that on my old TG1 enviroment, I get an
> > empty string for a new empty form:
> >> tg-admin shell
> >> widgets.Form().render()
>
> That should yield and import error, or if you import widgets, complain
> about missing template or template engine not started.
>
> Can you check with a quickstarted project? Maybe your project is doing
> something weird.
>
> -- 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
-~----------~----~----~----~------~----~------~--~---