|
a/Allura/allura/controllers/root.py |
|
b/Allura/allura/controllers/root.py |
|
... |
|
... |
62 |
self.browse = ProjectBrowseController()
|
62 |
self.browse = ProjectBrowseController()
|
63 |
super(RootController, self).__init__()
|
63 |
super(RootController, self).__init__()
|
64 |
|
64 |
|
65 |
def _setup_request(self):
|
65 |
def _setup_request(self):
|
66 |
c.project = c.app = None
|
66 |
c.project = c.app = None
|
|
|
67 |
c.memoize_cache = {}
|
67 |
c.user = plugin.AuthenticationProvider.get(request).authenticate_request()
|
68 |
c.user = plugin.AuthenticationProvider.get(request).authenticate_request()
|
68 |
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()'
|
69 |
|
70 |
|
70 |
def _cleanup_request(self):
|
71 |
def _cleanup_request(self):
|
71 |
pass
|
72 |
pass
|