On Jun 26, 2007, at 10:43 AM, Marco Mariani wrote:

>
> iain duncan ha scritto:
>
>>> Thanks Alaa.  I will try sqlalchemy and genshi.  I'm not far enough
>>> down a path with either sqlobject or kid to feel indebted to using
>>> those going forward.
>>>
>>
>> I would second that suggestion. If you start down the road with TG  
>> using
>> Genshi, SA, and maybe even Tosca Widgets and Routes,
>
> Sure, but... can I switch my templates from kid to genshi _now_ in
> 1.0.2.2, without tosca?

You can use Genshi prefectly fine in 1.0.2.2. However, TG widgets  
will still be Kid-based and you'll need to wrap them to display them  
on Genshi. However, there's a patch at the Trac that does the  
wrapping automatically. If it's backwards compatible it should be  
applied to 1.0.

Tosca is only needed if you want your widget templates in Genshi.  
However, I would recommend anyone new into TG to give ToscaWidgets a  
try since they're more powerful, "fix" some design issues TG widgets  
have (which became apparent too late when TG's API was  frozen for  
the 1.0 release), and, most importantly, are actively maintained.  
(disclosure: I'm probably biased regarding TW since I wrote it.  
However, I wrote lots of TG widgets' code too... you'll have to  
decide yourself :)

>
> Do I need to rewrite the templates of the stock widgets
> (repeatingwidget, tableform, etc) or can I mix the two template  
> engines?
> I am not sure about this one...

You can mix them in these ways:

1) controller A can serve Kid and controller B can serve Genshi
2) TG widget displays Kid on Kid
3) TG widget displays Kid on Genshi (wrapping the widget with ET)
4) TW can be written in any tempate language and displayed on every  
template language supported by Buffet (the plugin interface that lets  
you use most python template languages in TurboGears, Pylons, etc...)
>
> Does the current genshi support <?python ?> blocks already?
> I seem to remember genshi is more "procedurally aware" than kid, so  
> this
> should not be an issue.

Latest stable release  (0.4 IIRC) does support python blocks

Alberto

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