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 3AE52F2F5 for ; Wed, 21 Aug 2013 15:26:52 +0000 (UTC) Received: (qmail 33261 invoked by uid 500); 21 Aug 2013 15:26:46 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 33190 invoked by uid 500); 21 Aug 2013 15:26:46 -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 32831 invoked by uid 99); 21 Aug 2013 15:26:44 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 15:26:44 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8A3A88C194E; Wed, 21 Aug 2013 15:26:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: brondsem@apache.org To: allura-commits@incubator.apache.org Date: Wed, 21 Aug 2013 15:26:44 -0000 Message-Id: <8171f6e304304071a9cd58336e094eb8@git.apache.org> In-Reply-To: <1151aa212a9a42cc81140ccd6acc492f@git.apache.org> References: <1151aa212a9a42cc81140ccd6acc492f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/50] git commit: [#3154] ticket:386 Config option for export dir [#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 Authored: Thu Jul 4 12:24:07 2013 +0300 Committer: Dave Brondsema 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 ` 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