tw.dynforms broken?

5 views
Skip to first unread message

Antoine Pitrou

unread,
Dec 29, 2009, 2:07:48 PM12/29/09
to TurboGears
Hello,

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 B. Roggisch

unread,
Dec 29, 2009, 5:11:38 PM12/29/09
to turbo...@googlegroups.com
You Need to take the mercurial Version of tw.dynforms, because when
the 0.9.8 Release was done, it was forgotten.

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

Antoine Pitrou

unread,
Jan 11, 2010, 10:53:40 AM1/11/10
to turbo...@googlegroups.com
Le mardi 29 décembre 2009 à 23:11 +0100, Diez B. Roggisch a écrit :
> You Need to take the mercurial Version of tw.dynforms, because when
> the 0.9.8 Release was done, it was forgotten.

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.


Diez B. Roggisch

unread,
Jan 11, 2010, 11:45:53 AM1/11/10
to turbo...@googlegroups.com

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

Antoine Pitrou

unread,
Jan 11, 2010, 11:56:28 AM1/11/10
to turbo...@googlegroups.com
Le lundi 11 janvier 2010 à 17:45 +0100, Diez B. Roggisch a écrit :
> On Monday 11 January 2010 16:53:40 Antoine Pitrou wrote:
> > Le mardi 29 décembre 2009 à 23:11 +0100, Diez B. Roggisch a écrit :
> > > You Need to take the mercurial Version of tw.dynforms, because when
> > > the 0.9.8 Release was done, it was forgotten.
> >
> > 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.
>
> 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.

My apologies. From your response I had (wrongly) understood that you
were the maintainer. :-/

Regards

Antoine.


Sergei Beilin

unread,
Feb 19, 2010, 12:59:38 AM2/19/10
to TurboGears
Hello Diez and 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

Reply all
Reply to author
Forward
0 new messages