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 21D37C427 for ; Mon, 3 Jun 2013 14:37:48 +0000 (UTC) Received: (qmail 14051 invoked by uid 500); 3 Jun 2013 13:37:47 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 13928 invoked by uid 500); 3 Jun 2013 13:37:47 -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 13673 invoked by uid 99); 3 Jun 2013 13:37: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; Mon, 03 Jun 2013 13:37:44 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B25D689FC7A; Mon, 3 Jun 2013 13:37: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: Mon, 03 Jun 2013 13:37:50 -0000 Message-Id: In-Reply-To: <5d7115ad9b314c2b9a7e8591476d9f90@git.apache.org> References: <5d7115ad9b314c2b9a7e8591476d9f90@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/21] git commit: [#6235] ticket:352 Fix waiting for snapshot page [#6235] ticket:352 Fix waiting for snapshot page Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c0fb628a Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c0fb628a Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c0fb628a Branch: refs/heads/master Commit: c0fb628a53d8388e123417a9568d76f9a6d05e68 Parents: 20be6df Author: Igor Bondarenko Authored: Fri May 17 16:05:08 2013 +0000 Committer: Dave Brondsema Committed: Fri May 31 22:14:08 2013 +0000 ---------------------------------------------------------------------- Allura/allura/model/repository.py | 4 ++-- Allura/allura/templates/repo/tarball.html | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c0fb628a/Allura/allura/model/repository.py ---------------------------------------------------------------------- diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py index 65ac0a2..1b6cfc4 100644 --- a/Allura/allura/model/repository.py +++ b/Allura/allura/model/repository.py @@ -272,8 +272,8 @@ class Repository(Artifact, ActivityObject): filename = '%s-%s-%s' % (shortname, mount_point, revision) return filename - def tarball_url(self, revision): - filename = '%s%s' % (self.tarball_filename(revision), '.zip') + def tarball_url(self, revision, path=None): + filename = '%s%s' % (self.tarball_filename(revision, path), '.zip') r = os.path.join(self.tool, self.project.shortname[:1], self.project.shortname[:2], http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c0fb628a/Allura/allura/templates/repo/tarball.html ---------------------------------------------------------------------- diff --git a/Allura/allura/templates/repo/tarball.html b/Allura/allura/templates/repo/tarball.html index 91f6f0b..e4a9cad 100644 --- a/Allura/allura/templates/repo/tarball.html +++ b/Allura/allura/templates/repo/tarball.html @@ -28,10 +28,11 @@ Commit {{commit.shorthand_id()}} {{commit_labels( {% block extra_js %} {{ super() }}