allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [02/50] git commit: [#3154] ticket:386 Config option for export dir
Date Wed, 21 Aug 2013 15:26:44 GMT
[#3154] ticket:386 Config option for export dir


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

Branch: refs/heads/db/3154b
Commit: 2debd0871e7c57d0401da67c1ee89019587c0d14
Parents: d06a7f8
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Jul 4 12:24:07 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Aug 21 15:25:53 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/project.py | 6 ++++++
 Allura/development.ini         | 2 ++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2debd087/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index db7da13..82c9a97 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -820,6 +820,12 @@ class Project(MappedClass, ActivityNode, ActivityObject):
                 accounturl=accounturl
                 ))
 
+    def bulk_export_path(self):
+        return config['bulk_export_path'].format(
+                nbhd=self.neighborhood.url_prefix.strip('/'),
+                project=self.shortname)
+
+
 class AppConfig(MappedClass):
     """
     Configuration information for an instantiated :class:`Application <allura.app.Application>`

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2debd087/Allura/development.ini
----------------------------------------------------------------------
diff --git a/Allura/development.ini b/Allura/development.ini
index 338b8ee..6fe2e6e 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -142,6 +142,8 @@ scm.repos.tarball.root = /usr/share/nginx/www/
 scm.repos.tarball.url_prefix = http://localhost/
 scm.repos.tarball.zip_binary = /usr/bin/zip
 
+bulk_export_path = /tmp/bulk_export/{nbhd}/{project}
+
 # space-separated list of tool names that are valid options
 # for project admins to set for their 'support_page' field
 # this field is not used by default in Allura, so this option


Mime
View raw message