incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#7110] importer.target_app not always a list
Date Tue, 28 Jan 2014 16:49:40 GMT
Updated Branches:
  refs/heads/tv/7110 [created] 036905c23


[#7110] importer.target_app not always a list

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/036905c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/036905c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/036905c2

Branch: refs/heads/tv/7110
Commit: 036905c236518ae7aa62abe8434c06ee9900a4b6
Parents: b15ef35
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Jan 28 16:49:26 2014 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Jan 28 16:49:26 2014 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/wiki.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/036905c2/ForgeImporters/forgeimporters/github/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/wiki.py b/ForgeImporters/forgeimporters/github/wiki.py
index 9c00048..0bd95da 100644
--- a/ForgeImporters/forgeimporters/github/wiki.py
+++ b/ForgeImporters/forgeimporters/github/wiki.py
@@ -21,6 +21,8 @@ from datetime import datetime
 from tempfile import mkdtemp
 from shutil import rmtree
 
+from paste.deploy.converters import aslist
+
 from BeautifulSoup import BeautifulSoup
 import git
 from pylons import app_globals as g
@@ -81,7 +83,7 @@ class GitHubWikiImportController(BaseController, GitHubOAuthMixin):
 
     @property
     def target_app(self):
-        return self.importer.target_app[0]
+        return aslist(self.importer.target_app)[0]
 
     @with_trailing_slash
     @expose('jinja:forgeimporters.github:templates/wiki/index.html')


Mime
View raw message