On Jan 9, 2007, at 1:50 PM, jose wrote:

>
> Karl Guertin wrote:
>
>>
>> On 1/8/07, Leandro Lucarella <[EMAIL PROTECTED]> wrote:
>>
>>> <snip discussion>
>>
>>
>>
>> The migration from Kid to Genshi is pretty painless. The SO to SA
>> migration depends on how you're using SO and the size of your  
>> project.
>> The more queries you have scattered around, the more difficult it'll
>> be.
>>
> ... and what about migration from actual widgets to ToscaWidgets?

Shouldn't be too difficult either. Most of the API is compatible and  
has the same method/attribute names, you can also still use Kid if  
you don't want to port the templates to Genshi yet (and should allow  
using those widgets in genshi templates)...  However, the way  
compound widgets are built is different in TW (easier IMO) so  
compound widget's will need to be tweaked. IMO, the API is easier and  
more flexible in TW.

All widgets under turbogears.widgets.forms have been ported as well  
as both calendars (though i18n is broken as it was dependent on TG  
and TW where designed not to require TG). You can take a look there  
and see how it differs from tg widgets to get an idea. I'm planning  
on providing some rich widgets (using jQuery) in the twForms so I  
won't be porting myself TG's Ajax widgets.

The class hierarchy for form widgets has been greatly simplified but  
has changed, so widget's inheriting from form fields should be  
adapted. It took me about 2 hours to port all widgets under forms to  
TW so I'll say it's quite easy (well, I wrote the code so take that  
with a grain of salt... ;)

Alberto

BTW, I'm guilty too for not following it but... ToscaWidgets are  
targeted for 2.0 (though they can be used in 1.0) so it's best to  
discuss them at the trunk ML in order to not confuse 1.0 users.

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