allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [18/46] git commit: [#5973] Contextual reminder if setup-app was not run
Date Wed, 03 Apr 2013 17:26:47 GMT
[#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 <dbrondsema@geek.net>
Authored: Thu Mar 14 13:19:43 2013 -0400
Committer: Tim Van Steenburgh <tvansteenburgh@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")
-


Mime
View raw message