incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/6] git commit: ticket:521 add but no test
Date Thu, 27 Feb 2014 22:32:54 GMT
ticket:521 add but no test


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

Branch: refs/heads/master
Commit: c09a54ade3f512cbaecb8dd37f4c7624a08e42c2
Parents: b38dcbf
Author: tramzzz <steh44@gmail.com>
Authored: Mon Jan 20 16:03:10 2014 +0200
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu Feb 27 21:12:49 2014 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/auth.py | 3 +++
 Allura/allura/lib/plugin.py       | 4 ++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c09a54ad/Allura/allura/controllers/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
index 87e0c44..24a989a 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -76,6 +76,9 @@ class AuthController(BaseController):
         self.user_info = UserInfoController()
         self.subscriptions = SubscriptionsController()
         self.oauth = OAuthController()
+        urls = plugin.UserPreferencesProvider.get().additional_urls()
+        for u, method in urls:
+            setattr(self, u, method)
 
     @expose()
     def prefs(self, *args, **kwargs):

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c09a54ad/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 7773bf0..b692078 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -983,6 +983,9 @@ class UserPreferencesProvider(object):
         '''
         raise NotImplementedError, 'find_by_display_name'
 
+    def additional_urls(self):
+        return []
+
 
 class LocalUserPreferencesProvider(UserPreferencesProvider):
 
@@ -1011,6 +1014,7 @@ class LocalUserPreferencesProvider(UserPreferencesProvider):
         return users
 
 
+
 class AdminExtension(object):
 
     """


Mime
View raw message