diff options
Diffstat (limited to 'israwhidebroken/controllers.py')
-rw-r--r-- | israwhidebroken/controllers.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/israwhidebroken/controllers.py b/israwhidebroken/controllers.py index 01b0497..8873f77 100644 --- a/israwhidebroken/controllers.py +++ b/israwhidebroken/controllers.py @@ -1,6 +1,6 @@ import turbogears as tg from turbogears import controllers, expose, flash -# from israwhidebroken import model +from israwhidebroken import model from turbogears import identity, redirect from cherrypy import request, response # from israwhidebroken import json @@ -12,7 +12,9 @@ class Root(controllers.RootController): def index(self): # TODO: find most recent tree(s) return dict(in_qa='qa' in identity.current.groups, - admin='qa-admin' in identity.current.groups) + admin='qa-admin' in identity.current.groups, + tests=model.Test.select(), + treeid=0) # fake treeid @expose(template="israwhidebroken.templates.login") def login(self, forward_url=None, *args, **kw): |