Hi,

This works:

params = dict(attrs=dict(labelname={'testattr':False}))
e =
TableForm(fields=[Label(name="labelname")]).render(dict(labelname="testvalue"),**params)
ok_('testattr="False"' in e)

but his not:

params = dict(labelname=dict(attrs={'testattr':False}))
e =
TableForm(fields=[Label(name="labelname")]).render(dict(labelname="testvalue"),**params)
ok_('testattr="False"' in e)

But the second variant with the same strucutre as the value dict:
first key is the fieldname, second key the param for that field is way
more logical for me than the working structure with first the name of
the param and then the name of the field.

Do I miss something here? Is there an easier way?

--
Greg

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