allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [04/36] git commit: [#5502] ticket:462 Updated docstings for Application
Date Fri, 20 Dec 2013 18:50:30 GMT
[#5502] ticket:462 Updated docstings for Application


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

Branch: refs/heads/db/6388
Commit: f2afd1fa385cb8f3c362d26f6765c629a8e65df7
Parents: cd4b44f
Author: Andriy Sherepa <asherepa@gmail.com>
Authored: Fri Nov 22 13:59:20 2013 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Dec 18 20:38:57 2013 +0000

----------------------------------------------------------------------
 Allura/allura/app.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f2afd1fa/Allura/allura/app.py
----------------------------------------------------------------------
diff --git a/Allura/allura/app.py b/Allura/allura/app.py
index 21f8434..dede4e2 100644
--- a/Allura/allura/app.py
+++ b/Allura/allura/app.py
@@ -185,8 +185,9 @@ class Application(object):
     :cvar list permissions: Named permissions used by instances of this
         Application. Default is [].
     :cvar dict permissions_desc: Descriptions of the named permissions.
-    :cvar bool installable: Default is True, Application can be installed in
-        projects.
+    :cvar int max_instances: Specifies the number of tools of this type
+        that can be added to the project. Zero indicates the system tool or one that
+        can not be added to the project by the user. Default value is 0.
     :cvar bool hidden: Default is False, Application is not hidden from the
         list of a project's installed tools.
     :cvar str tool_description: Text description of this Application.
@@ -323,7 +324,11 @@ class Application(object):
 
     @property
     def installable(self):
-        """Return list of app what can be installed.
+        """Checks whether to add a tool to the project.
+
+        Return True if app can be installed.
+
+        :rtype: bool
 
         """
         tools_list = [tool.tool_name.lower() for tool in self.project.app_configs]


Mime
View raw message