|
a/Allura/allura/controllers/root.py |
|
b/Allura/allura/controllers/root.py |
|
... |
|
... |
67 |
c.project = c.app = None
|
67 |
c.project = c.app = None
|
68 |
c.user = plugin.AuthenticationProvider.get(request).authenticate_request()
|
68 |
c.user = plugin.AuthenticationProvider.get(request).authenticate_request()
|
69 |
assert c.user is not None, 'c.user should always be at least User.anonymous()'
|
69 |
assert c.user is not None, 'c.user should always be at least User.anonymous()'
|
70 |
c.queued_messages = []
|
70 |
c.queued_messages = []
|
71 |
|
71 |
|
|
|
72 |
def _cleanup_request(self):
|
|
|
73 |
from allura import carrot_connection
|
|
|
74 |
for msg in c.queued_messages:
|
|
|
75 |
g._publish(**msg)
|
|
|
76 |
carrot_connection.close()
|
|
|
77 |
|
72 |
@expose('jinja:project_list.html')
|
78 |
@expose('jinja:project_list.html')
|
73 |
@with_trailing_slash
|
79 |
@with_trailing_slash
|
74 |
def index(self, **kw):
|
80 |
def index(self, **kw):
|
75 |
"""Handle the front-page."""
|
81 |
"""Handle the front-page."""
|
76 |
c.project_summary = W.project_summary
|
82 |
c.project_summary = W.project_summary
|