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 D7726109E3 for ; Thu, 27 Feb 2014 22:33:04 +0000 (UTC) Received: (qmail 33814 invoked by uid 500); 27 Feb 2014 22:32:55 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 33734 invoked by uid 500); 27 Feb 2014 22:32:54 -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 33695 invoked by uid 99); 27 Feb 2014 22:32:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Feb 2014 22:32:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7384692FA80; Thu, 27 Feb 2014 22:32:53 +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: Thu, 27 Feb 2014 22:32:57 -0000 Message-Id: In-Reply-To: <65186486cb644a79bc62ba783f1a8b8a@git.apache.org> References: <65186486cb644a79bc62ba783f1a8b8a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [5/6] git commit: [#7029] ticket:521 Improve docstring for additional_urls [#7029] ticket:521 Improve docstring for additional_urls Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/a738f1be Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a738f1be Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a738f1be Branch: refs/heads/master Commit: a738f1be7edb4fa85e1604e1504599031070a58d Parents: 663ceca Author: Igor Bondarenko Authored: Mon Feb 24 10:57:47 2014 +0000 Committer: Cory Johns Committed: Thu Feb 27 21:15:21 2014 +0000 ---------------------------------------------------------------------- Allura/allura/lib/plugin.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a738f1be/Allura/allura/lib/plugin.py ---------------------------------------------------------------------- diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py index 072d829..cfd9170 100644 --- a/Allura/allura/lib/plugin.py +++ b/Allura/allura/lib/plugin.py @@ -985,7 +985,14 @@ class UserPreferencesProvider(object): def additional_urls(self): ''' - :return: [[str url, function], ] + Returns list of additional routes for AuthProvider. + + No additional routes by default. Subclasses migth override this. + + For example: [('newroute', newroute_handler), ] will add + 'newroute' attribute to AuthProvider, which will be set to newroute_handler. + + newroutehandler is a usual controller method (decorated with @exposed and other stuff). ''' return []