allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6456] Fix references to class attributes
Date Fri, 19 Jul 2013 15:17:30 GMT
Updated Branches:
  refs/heads/master 838ecb304 -> 3697dcb06


[#6456] Fix references to class attributes

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/master
Commit: 3697dcb06a716779bf97e4ea5e1e219019369b8e
Parents: 838ecb3
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Fri Jul 19 15:17:15 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Fri Jul 19 15:17:15 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3697dcb0/ForgeImporters/forgeimporters/google/__init__.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/__init__.py b/ForgeImporters/forgeimporters/google/__init__.py
index fb605f1..0feb64a 100644
--- a/ForgeImporters/forgeimporters/google/__init__.py
+++ b/ForgeImporters/forgeimporters/google/__init__.py
@@ -45,7 +45,7 @@ class GoogleCodeProjectExtractor(object):
 
     def __init__(self, project, page='project_info'):
         gc_project_name = project.get_tool_data('google-code', 'project_name')
-        page = urllib2.urlopen(PAGE_MAP[page] % urllib.quote(gc_project_name))
+        page = urllib2.urlopen(self.PAGE_MAP[page] % urllib.quote(gc_project_name))
         self.project = project
         self.page = BeautifulSoup(page)
 
@@ -63,6 +63,6 @@ class GoogleCodeProjectExtractor(object):
 
     def get_license(self):
         license = str(self.page.find(text='Code license:').findNext('td')).strip()
-        trove = M.TroveCategory.query.get(fullname=LICENSE_MAP[license])
+        trove = M.TroveCategory.query.get(fullname=self.LICENSE_MAP[license])
         self.project.trove_license.append(trove._id)
 


Mime
View raw message