2006/05/07

Beginning with TurboGears

After trying Zope 3 and finding it too "bureaucratic" for development, I was seeking for a Python Web framework. It seems that one framework will take off now: TurboGears. Before that I was somewhat tempted by Webware (which still is a good option), but TurboGears offers a more verticalized and complete solution (from database access to Javascript/AJAX).

I am still far from doing anything useful with TurboGears, but saw enough to like it. It is simple to understand, easy to install, completely made in Python, does not hide things from the developers and is very Pythonic.

One criticism I have, is that they try to sell the idea the components fit in the MVC object model, being Kid XML templates the View and CherryPy as the Controller. It is true if and only if you put a good amount of Python code inside the XML templates, and I hate to put software "intelligence" in XML.

Zope 3 has a more "correct" implementation of the MVC model for Web software, I have to admit. The whole problem was that all glue code between Model, View and Controller had to lie in ZCML (the Zope 3 XML grammar).

But this TurboGears small problem is something easily fixable in your software project: make Kid + the front-end classes of CherryPy as your View, and the back-end classes of CherryPy being the Controller. The glue code is inside CherryPy, of course being Python, which was all I desired :)

1 Comentários:

Às 20:28 , Blogger Gustavo Sverzut Barbieri disse...

Elvis,

I agree with you and I'm hopeful about TurboGears.

I think it's the best option, really pythonic and easy to use, it's the first python framework, except for CGI, which I can learn in one afternoon.

However, it still have to mature, I'm looking forward FastData and Widgets, that are improving fast and will, probably, get some care with Google's Sumer of Code.

cya

 

Postar um comentário

<< Início