Glauco Uri schrieb:
> first, i want to introduce genshi (using tg widgets) ,
> and finally my idea is to migrate entirely to genshi with TW.
TG widgets currently do not support Genshi templates (not yet - I'm
considering to add this feature to TG 1.1/1.2/1.5 to make the Genshi
support more consistent).
> def lnk( x):
> a=wid.URLLink( text=x.cNote, link=tg.url(<url>) )
> return a.display()
>
>
> gridFields=[
> ...
> DataGrid.Column(name='foo', title='bar', getter=lambda
> x: lnk(x) ),
> ...]
>
> Ive noticed thad using tg widgets for inject html into datagrid give
> always: ... ValueError: too many values to unpack
What exactly do you mean with "inject html into datagrid"? The above
works for me in TG 1.1. Btw, you can write it in a more compact way:
def lnk(x):
return wid.URLLink(text=x.cNote, link=tg.url(<url>))()
gridFields=[
...
DataGrid.Column('foo', lnk, 'bar'),
...]
-- 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
-~----------~----~----~----~------~----~------~--~---