Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 006CCFC54 for ; Wed, 3 Apr 2013 17:26:32 +0000 (UTC) Received: (qmail 86321 invoked by uid 500); 3 Apr 2013 17:26:31 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 86272 invoked by uid 500); 3 Apr 2013 17:26:31 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 85939 invoked by uid 99); 3 Apr 2013 17:26:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 17:26:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E692A836E72; Wed, 3 Apr 2013 17:26:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Date: Wed, 03 Apr 2013 17:26:47 -0000 Message-Id: <88e9d83f5c0d4f9fa4beb5899da32a52@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Thu Mar 14 13:19:43 2013 -0400 Committer: Tim Van Steenburgh 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") -