The last TurboGears 2 sprint and the following mad coding rush, resulted in lots of good stuff, both for Pylons, and TurboGears 2. Now we have a usable tg2 package, hopefully we’ll be able to create some docs, polish a few things up, and get ready for a tg2 technology preview release in the next few weeks.
Pylons gets TurboGears style controllers:
Pylons also has a controller that lets you return a dictionary from your controller objects to get a “TurbGears like” development experience within Pylons itself. Not only that, we’ve added a controller to Pylons that allows you to object dispatch within Pylons. You create a route to your controller’s
route method, and pass the rest of the URL to there. These new controllers should bring the Pylons and TurboGears development experiences closer together all by themselves.
Improved code re-use in TurboGears2:
The changes in Pylons also made it possible for us to share code for even more components, including object dispatch, and the
@expose decorator. So the latest version of TurboGears 2 relies on the latest development version of Pylons, and makes use all the new stuff we just added, dramatically reducing the amount in TurboGears2 and increasing our shared code.
The TurboGearsController went from a couple hundred lines of code to less than a half dozen. ;)
This opens up space to for the TurboGears2 project to focus on some improvements to the generated project template, and on building pluggable application components on top of the TG2 core. There are components already in the works for project documentation, automatic CRUD interfaces, and hopefully these will be joined by things like reusable user registration tools, blogs, web based forums, and a whole host of re-usable components.
Right now, TurboGears and has very little documentation — but things are moving forward quickly on the code side, and I’m very committed to documenting everything we do, and I’m really excited about the next sprint this weekend.
Upcomming Sprint, November 10
We should be able to improve the documentation, the tg2 test infrastructure, and test suite, and possibly make some progress on things like automatic transactions, and user authorization, etc. If you’re interested and available to help out stick your name on the wiki and come and join us either at Stanford, or virtually on IRC, and we’ll see how much we can get done.