Combining jQuery Mobile and Flask-WTF may give you headaches, or why dashes suck in Python variable names

I thought developing using Flask on the backend and using jQuery on the front-end (navigator) would be quite easy. In fact it is, but there are some small traps that can take you time to resolve. A regular case would be, when developing a form, to use Flask with WTForms (Flask-WTF to the rescue!). No problem, you end up with some Jinja2 templates like the following: [crayon-57239e344b6b7428913737/] Here, you’re converting the variable “channel” which comes from a class defined in the Python Flask code, and thanks to WTForms will convert it to an HTML Select Box. You can also add arguments to that, which will be converted automatically to a pair key/value, for example, you can set {{’foobar’)}}, which will translate in HTML to: [crayon-57239e344b6c3388400480/] The problem begins when you want to use the themes from jQuery, which are named like “data-theme”. Notice that cool dash (‘-‘)! It prevents you ...(Read More)

TurboGears and Pylons will merge! (and CleverHarold RIP)

Mark Ramm, one of TurboGears‘s core developers announced on TurboGears’s mailing list that they will merge with Pylons! To be more precise, the API of TurboGears will be implemented on top of Pylons. It seems they already made some test/proof of concept that are, as they say “a huge success”. That’s really good news for Python web frameworks development, and a good news for me, as I’ll not have to choose between the two :- As a sidenote, it seems another framework, CleverHarold has disappeared without anybody noticing. Its domain is parked, and today its Google Group page went off (the last messages were from people asking if the project was still alive). Update: Noah Gift wrote a nice article about the merge.

Nice introduction article on Pylons

Pylons is a cool web framework (one more, besides TurboGears, Django, Zope, etc.). Someone posted on the mailing list a reference to a nice introduction.