On Dec 21, 2006, at 6:58 AM, Bill wrote:
I updated from SVN and now my ToscaWidgets app works great! Thanks very much for all your fine efforts. I can see that ToscaWidets is quickly going to become a standard item with Pylons. It is so easy to integrate thanks to your work, Alberto.
Great! Thanks :)
Oh, and my own little ToscaWidgets app is done with Myghty forms and works like a charm. At some point will you be making the Genshi requirement optional?
ToscaWidgets itself doesn't require any template engine by default except stdlib's string.Template and it'll probably remain this way. It's only the forms package that needs Genshi (mainly because it would be a pain to implement with string.Template ;).
You could however reimplement the forms package's templates in Mighty easily (I believe) as there's almost no logic in the templates because heavy "view" logic is intended to be kept inside the widget's "update_params" method. This would make sure you avoid the performance penalty of parsing strings into a genshi stream and serializing back when mixing genshi/string templates.
You can override the template by subclassing a widget or by passing a "template" parameter when initializing it.
BTW, ¿Did you need any special hack to get Mighty working for widget templates? If so, would you mind sharing it so I can include it in TW and write tests for it?
Thanks :) Alberto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
