Christoph Zwerschke ha scritto:
> 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).
>   
I know this, TG widgets currently do not support Genshi templates but  
genshi template support tg widgets.

i will see for news ,and thank you for this exceptional work

>   
>> 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'),
>              ...]
>
>
>   
This is exactly what i do now,
in fact if  i use a page kid template with this code all work perfectly, 
but switching page template  to genshi in all pages raise the problem.


thank's
Glauco

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