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 151EF10C8E for ; Wed, 28 Aug 2013 14:34:58 +0000 (UTC) Received: (qmail 34162 invoked by uid 500); 28 Aug 2013 14:34:48 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 34042 invoked by uid 500); 28 Aug 2013 14:34: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 33313 invoked by uid 99); 28 Aug 2013 14:34:43 -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, 28 Aug 2013 14:34:43 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D5E9D32002B; Wed, 28 Aug 2013 14:34:42 +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: Wed, 28 Aug 2013 14:35:13 -0000 Message-Id: <02942bca443f476ebe312e80dc7a9629@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [32/50] 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/44762cbc Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/44762cbc Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/44762cbc Branch: refs/heads/tv/6526 Commit: 44762cbc2a021ac36fdde1bbee3f04e67785fd5f Parents: 69db59c Author: Yuriy Arhipov Authored: Thu Aug 22 15:22:55 2013 +0400 Committer: Cory Johns Committed: Mon Aug 26 17:19:57 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/44762cbc/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)