TurboGears 2.3 compatibility

I had to make these changes to run my application on TurboGears 2.3.4