You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/04/03 19:26:47 UTC
[18/46] git commit: [#5973] Contextual reminder if setup-app was not
run
[#5973] Contextual reminder if setup-app was not run
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3004b5f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3004b5f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3004b5f5
Branch: refs/heads/cj/5879
Commit: 3004b5f55a7c03df9d8a261d011ddc515b7551ea
Parents: 6db2bc2
Author: Dave Brondsema <db...@geek.net>
Authored: Thu Mar 14 13:19:43 2013 -0400
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Apr 2 21:29:20 2013 +0000
----------------------------------------------------------------------
Allura/allura/controllers/root.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3004b5f5/Allura/allura/controllers/root.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/root.py b/Allura/allura/controllers/root.py
index 69c80ec..5ac4767 100644
--- a/Allura/allura/controllers/root.py
+++ b/Allura/allura/controllers/root.py
@@ -75,7 +75,8 @@ class RootController(WsgiDispatchController):
c.project = c.app = None
c.memoize_cache = {}
c.user = plugin.AuthenticationProvider.get(request).authenticate_request()
- assert c.user is not None, 'c.user should always be at least User.anonymous()'
+ assert c.user is not None, ('c.user should always be at least User.anonymous(). '
+ 'Did you run `paster setup-app` to create the database?')
def _cleanup_request(self):
pass
@@ -90,4 +91,3 @@ class RootController(WsgiDispatchController):
SitemapEntry(cat.label, '/browse/'+cat.name) for cat in categories
]
return dict(neighborhoods=neighborhoods,title="All Neighborhoods")
-