For the a period of 18 months or so I slowly ported my chess by rss site (chrss) from Turbogears 1.0 to Django. When I started the port Django 1.1 was the latest version. I took so long to finish the port, that Django got to version 1 …
Articles tagged with turbogears
Turbogears, remember me
So a while back I implemented a remember me feature for chrss. I said I'd release the code for it and am finally now getting round to it.
Please note that this kind of "remember me" functionality can represent a potentially security hole. It makes sense for some sites where …
Splitting your Turbogears SQLObject models
Just a quick note about splitting your model.py file in Turbogears 1.0, when using SQLObject. The Turbogears docs have some notes on this, but there was an extra trick to it in the end.
The model.py file for chrss, was starting to get a bit big, so …
A turbogears caching decorator
A while back I wrote a caching decorator for chrss. It's mostly used for the rss feeds, to help avoid having over-zealous rss readers slowing the site down. However I'm also now running it on a few other pages that were a bit slow (notably generating PGN files for games …
Using raw SQL with SQLObject and keeping the object-y goodness
This is sort of a continuation of my little SQLObject performance guide. So it might be worth reading that too, if you are after hints about speeding up SQLObject. Anyway, on with the show...
It's possible to create raw (database agnostic) sql queries with SQLObject. This can be really handy …
A little SQLObject performance guide
For those that aren't aware, SQLObject is an Object-Relational Mapping (ORM) library for Python. I use it in chrss (my chess by rss web app) as part of Turbogears. Ian and Kyran also use it as part of the ShowMeDo site.
Chrss and ShowMeDo have quite different levels of traffic …
Turbogears and mobile mini-site logins
I'm in the process of to writing a simple mobile version of chrss (chess by rss). This is spurred by the arrival of my new Nokia 6300 (which comes with Opera Mini). I'm aiming to end up with a mini-site running at http://chrss.co.uk/mob/ or similar.
The …
Turbogears, Breadcrumbs and get_object_trail()
Whilst reading this thread on the Turbogear's Google Group someone (asm on the list) posted a link to adding breadcrumbs to Turbogears apps.
After a little more reading I found a page on the Turbogears site itself about this subject too: http://docs.turbogears.org/1.0/BreadCrumb
The really …