|
a/Allura/allura/controllers/test.py |
|
b/Allura/allura/controllers/test.py |
|
... |
|
... |
86 |
app = c.project.app_instance(name)
|
86 |
app = c.project.app_instance(name)
|
87 |
if app is None:
|
87 |
if app is None:
|
88 |
raise exc.HTTPNotFound, name
|
88 |
raise exc.HTTPNotFound, name
|
89 |
c.app = app
|
89 |
c.app = app
|
90 |
return app.root, remainder
|
90 |
return app.root, remainder
|
91 |
#
|
|
|
92 |
# @expose('jinja:project_index.html')
|
|
|
93 |
# def index(self, **kw):
|
|
|
94 |
# require(has_project_access('read'))
|
|
|
95 |
# return dict()
|
|
|
96 |
|
91 |
|
97 |
def __call__(self, environ, start_response):
|
92 |
def __call__(self, environ, start_response):
|
98 |
c.app = None
|
93 |
c.app = None
|
99 |
c.project = M.Project.query.get(shortname='test')
|
94 |
c.project = M.Project.query.get(shortname='test')
|
100 |
c.user = plugin.AuthenticationProvider.get(request).by_username(
|
95 |
c.user = plugin.AuthenticationProvider.get(request).by_username(
|