A possible alternative for the Tx widgets problem
Jun 2nd, 2008 by diegobz
On the last weeks I’ve been looking for an alternative for our Tx problem related with Genshi migration and consequently widgets.
Well, I’ve found a project that seems to be what we need. This project is called DBSprockets and it provides an easy way to implement forms on TG1.0, TG2.0 and others. It requires genshi>=0.4, sqlalchemy>=0.4 and toscawidgets, fortunately that’s the same direction for where we are running.
Another exciting thing is that seems a very maintained project and there is a GSoC 2008 application (TG ideas) for that too. At the DBSprockets website there are some docs pages[1,2] and everything seems to be very simple to be implemented. However, I didn’t do any test yet. Hopefully I’ll do it this week.
[1] http://code.google.com/p/dbsprockets/wiki/makeForm
[2] http://code.google.com/p/dbsprockets/wiki/makeTable
Hey Diego,
ToscaWidgets is very much alive. There’s been a few releases recently and Alberto is working on a new site: beta.toscawidgets.org, which has the new documentation and such. The DBSprockets author is also a contributor to toscawidgets. We’ve gotten toscawidgets packaged, reviewed, and into Fedora now, which is nice. We still need someone to package twforms, twtools, dbsprockets and other upstreams that provide widgets for tosca’s framework, though.
All that said, I don’t use widgets much. The TG widgets were a poor fit for my style of development. ToscaWidgets fits much better with how I think an app should be structured but I need to put together some forms that make use of them.