On Tue, Feb 17, 2009 at 1:24 PM, Paul Johnston <[email protected]> wrote:
>
> Hi,
>
>> ok I was going to check this out (but since you ping) and now I'm
>> lost.... in TG2 it is imported and the file isn't named
>> controllers.py, do you want this in TG1?
>
> Sorry, I meant controllers/root.py (I think - no dev environment in
> this cyber cafe). If it's already imported, I guess someone else has
> already made the change.

Hello Paul, this is the current template for that.

from {{package}}.lib.base import BaseController
from tg import expose, flash, require, url, request, redirect
from pylons.i18n import ugettext as _, lazy_ugettext as l_
#from tg import redirect, validate
from {{package}}.model import DBSession, metadata
from {{package}}.controllers.error import ErrorController

so in a way it is imported the weird thing is that it's all different
for all files, I guess we could clean this up a little.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to