You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/07/19 21:21:34 UTC

[5/7] git commit: [#6456] Fix references to class attributes

[#6456] Fix references to class attributes

Signed-off-by: Tim Van Steenburgh <tv...@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/cj/6456
Commit: 3697dcb06a716779bf97e4ea5e1e219019369b8e
Parents: 838ecb3
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Fri Jul 19 15:17:15 2013 +0000
Committer: Tim Van Steenburgh <tv...@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)