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 1504E105DE for ; Fri, 23 Aug 2013 16:01:55 +0000 (UTC) Received: (qmail 82522 invoked by uid 500); 23 Aug 2013 16:01:53 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 82440 invoked by uid 500); 23 Aug 2013 16:01:52 -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 82328 invoked by uid 99); 23 Aug 2013 16:01:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 16:01:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D50C08C3C62; Fri, 23 Aug 2013 16:01:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tvansteenburgh@apache.org To: allura-commits@incubator.apache.org Date: Fri, 23 Aug 2013 16:01:53 -0000 Message-Id: <2caa158909684bc6baed1a366fef2754@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [6/8] git commit: [#6531] ticket:413 Remove github username from project name [#6531] ticket:413 Remove github username from project name Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9bf4f01d Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9bf4f01d Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9bf4f01d Branch: refs/heads/tv/6531 Commit: 9bf4f01dfbd67e818d50c95f31024184f23b2a94 Parents: 5d63159 Author: Yuriy Arhipov Authored: Thu Aug 22 15:22:55 2013 +0400 Committer: Tim Van Steenburgh Committed: Fri Aug 23 14:14:36 2013 +0000 ---------------------------------------------------------------------- ForgeImporters/forgeimporters/github/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9bf4f01d/ForgeImporters/forgeimporters/github/project.py ---------------------------------------------------------------------- diff --git a/ForgeImporters/forgeimporters/github/project.py b/ForgeImporters/forgeimporters/github/project.py index 4af2bdf..58485a7 100644 --- a/ForgeImporters/forgeimporters/github/project.py +++ b/ForgeImporters/forgeimporters/github/project.py @@ -45,7 +45,8 @@ class GitHubProjectImporter(base.ProjectImporter): def after_project_create(self, project, **kw): project.set_tool_data('github', project_name=project.name) - tasks.import_project_info.post(project.name) + project_name = '%s/%s' % (kw['user_name'], kw['project_name']) + tasks.import_project_info.post(project_name) @with_trailing_slash @expose(index_template) @@ -56,7 +57,6 @@ class GitHubProjectImporter(base.ProjectImporter): @expose() @validate(process_validator) def process(self, **kw): - kw['project_name'] = '%s/%s' % (kw['user_name'], kw['project_name']) kw['tools'] = '' return super(self.__class__, self).process(**kw)