Permalink
Browse files

Integrate launchpad.

  • Loading branch information...
1 parent 87e612c commit 5ce518c8ee3255560f2f1293150a0e4989fe8f20 @ericholscher ericholscher committed May 4, 2011
Showing with 4 additions and 1 deletion.
  1. +1 −0 deploy_requirements.txt
  2. +1 −1 readthedocs/vcs_support/backends/launchpad.py
  3. +2 −0 readthedocs/vcs_support/base.py
@@ -5,3 +5,4 @@ pysolr
python-memcached
dnspython
redis
+launchpadlib
@@ -21,7 +21,7 @@ def get_branches(self):
def _get_project(self):
if self._lp_project is None:
lp = self._get_launchpad()
- self._lp_project = lp.projects[self.project.name] # Probably need to improve this
+ self._lp_project = lp.projects[self.project.slug] # Probably need to improve this
return self._lp_project
def _get_launchpad(self):
@@ -154,6 +154,8 @@ def _open_file(self, filename, mode='r'):
def get_backend(repo_type):
+ if repo_type == 'bzr':
+ repo_type = 'launchpad'
try:
module = import_module('vcs_support.backends.%s' % repo_type)
except ImportError:

0 comments on commit 5ce518c

Please sign in to comment.