incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [30/50] git commit: [#6531] ticket:413 homepage import from allura
Date Wed, 28 Aug 2013 14:35:11 GMT
[#6531] ticket:413 homepage import from allura


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

Branch: refs/heads/tv/6526
Commit: 0008c42bf0614433d2baa18a2c5b082233b76416
Parents: 44762cb
Author: Anton Kasyanov <mind1master@gmail.com>
Authored: Thu Aug 22 18:05:09 2013 +0300
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon Aug 26 17:19:57 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/__init__.py | 3 +++
 ForgeImporters/forgeimporters/github/tasks.py    | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0008c42b/ForgeImporters/forgeimporters/github/__init__.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/__init__.py b/ForgeImporters/forgeimporters/github/__init__.py
index 472429e..1ce4398 100644
--- a/ForgeImporters/forgeimporters/github/__init__.py
+++ b/ForgeImporters/forgeimporters/github/__init__.py
@@ -41,3 +41,6 @@ class GitHubProjectExtractor(object):
 
     def get_summmary(self):
         self.project.summary = self.page['description']
+
+    def get_homepage(self):
+        self.project.external_homepage = self.page['homepage']

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0008c42b/ForgeImporters/forgeimporters/github/tasks.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/tasks.py b/ForgeImporters/forgeimporters/github/tasks.py
index 4fd928c..be2325d 100644
--- a/ForgeImporters/forgeimporters/github/tasks.py
+++ b/ForgeImporters/forgeimporters/github/tasks.py
@@ -28,4 +28,5 @@ from . import GitHubProjectExtractor
 def import_project_info(project_name):
     extractor = GitHubProjectExtractor(c.project, project_name, 'project_info')
     extractor.get_summmary()
+    extractor.get_homepage()
     ThreadLocalORMSession.flush_all()


Mime
View raw message