You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/03/17 20:10:45 UTC
[2/7] 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/38600151
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/38600151
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/38600151
Branch: refs/heads/db/5973
Commit: 38600151895fde2ca82d43c6f941ed6e092bbd2c
Parents: e202a8e
Author: Dave Brondsema <db...@geek.net>
Authored: Thu Mar 14 13:19:43 2013 -0400
Committer: Dave Brondsema <db...@geek.net>
Committed: Sun Mar 17 12:10:09 2013 -0700
----------------------------------------------------------------------
Allura/allura/controllers/root.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/38600151/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")
-