incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [09/13] git commit: Pass project explicity to fix errors in setup-app
Date Thu, 25 Apr 2013 20:20:36 GMT
Pass project explicity to fix errors in setup-app

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/0cccda73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0cccda73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0cccda73

Branch: refs/heads/db/2835
Commit: 0cccda7381d9e82b6e35c47323048ff1b730671f
Parents: 5f980b7
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Apr 25 03:11:31 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Apr 25 03:11:31 2013 +0000

----------------------------------------------------------------------
 ForgeUserStats/forgeuserstats/main.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0cccda73/ForgeUserStats/forgeuserstats/main.py
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/main.py b/ForgeUserStats/forgeuserstats/main.py
index 950dfc8..1951cee 100644
--- a/ForgeUserStats/forgeuserstats/main.py
+++ b/ForgeUserStats/forgeuserstats/main.py
@@ -106,8 +106,8 @@ class ForgeUserStatsApp(Application):
 
     def __init__(self, project, config):
         Application.__init__(self, project, config)
-        role_admin = M.ProjectRole.by_name('Admin')._id
-        role_anon = M.ProjectRole.by_name('*anonymous')._id
+        role_admin = M.ProjectRole.by_name('Admin', project)._id
+        role_anon = M.ProjectRole.by_name('*anonymous', project)._id
         self.config.acl = [
             M.ACE.allow(role_anon, 'read'),
             M.ACE.allow(role_admin, 'admin')]


Mime
View raw message