I've just tried to upgrade toscawidgets and tw.forms to 0.9.8 (from
0.9.7.2) and it breaks tw.dynforms (which is at 0.9.1). Known problem?
Is a fix planned?
Here is an excerpt of the traceback:
[snip]
File '_tw_forms_templates_table_form_mak', line 136 in render_body
File '/usr/lib/python2.6/site-packages/ToscaWidgets-0.9.8-py2.6.egg/tw/
core/base.py', line 539 in display
kw = self.prepare_dict(value, kw)
File '/usr/lib/python2.6/site-packages/tw.forms-0.9.8-py2.6.egg/tw/
forms/core.py', line 232 in prepare_dict
kw = super(InputWidget, self).prepare_dict(value, kw, adapt=False)
File '/usr/lib/python2.6/site-packages/ToscaWidgets-0.9.8-py2.6.egg/tw/
core/base.py', line 582 in prepare_dict
self.update_params(d)
File '/usr/lib/python2.6/site-packages/tw.dynforms-0.9.1-py2.6.egg/tw/
dynforms/widgets.py', line 666 in update_params
mapping = tw.api.encode(mapping)
AttributeError: 'module' object has no attribute 'encode'
Thank you
Antoine.
Diez
Am 29.12.2009 um 20:07 schrieb Antoine Pitrou
<antoine...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google
> Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
> .
>
>
Well isn't it possible to do a release? Taking the mercurial version of
a project is fine when you are only depending on that single project,
not when you have 50+ dependencies because of the TG stack and a couple
of other interesting libraries.
Thank you
Antoine.
It sure is. I asked for it about half a dozen times. I won't ask again. Maybe
you have better luck? Sorry for not being able to help more.
In any case, I suggest you at least verify that the latest tip really solves
the issue for you of course.
Diez
My apologies. From your response I had (wrongly) understood that you
were the maintainer. :-/
Regards
Antoine.
On 30 дек 2009, 02:11, "Diez B. Roggisch" <de...@web.de> wrote:
> You Need to take the mercurial Version of tw.dynforms, because when
> the 0.9.8 Release was done, it was forgotten.
It seems it's still broken in hg?
File '/usr/local/lib/python2.6/dist-packages/tw.forms-0.9.8-py2.6.egg/
tw/forms/templates/table_form.html', line 35 in <Expression
u'field.display(value_for(field), **args_for(field))'>
${field.display(value_for(field), **args_for(field))}
File '/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.8-
py2.6.egg/tw/core/base.py', line 539 in display
kw = self.prepare_dict(value, kw)
File '/usr/local/lib/python2.6/dist-packages/tw.forms-0.9.8-py2.6.egg/
tw/forms/core.py', line 232 in prepare_dict
kw = super(InputWidget, self).prepare_dict(value, kw, adapt=False)
File '/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.8-
py2.6.egg/tw/core/base.py', line 582 in prepare_dict
self.update_params(d)
File '/usr/local/lib/python2.6/dist-packages/
tw.dynforms-0.9.8dev_20100219-py2.6.egg/tw/dynforms/widgets.py', line
763 in update_params
self.add_call('twd_cascade_cache["%s"] = %s;' % (self.id,
tw.api.encode(self.cache)))
AttributeError: 'module' object has no attribute 'encode'
Or am I doing something wrong?
--
Sergei