~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/launchpad_loggerhead/app.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-09 09:23:38 UTC
  • mfrom: (14333.2.13 history-model)
  • Revision ID: launchpad@pqm.canonical.com-20111209092338-se7u5l0skqzaes1v
[r=jcsackett][bug=295214, 894836,
 898200] Keep sort button ob bug listing pages in sync with the
 displayed data

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    path_info_pop,
44
44
    )
45
45
 
 
46
from canonical.config import config
 
47
from canonical.launchpad.webapp.errorlog import ErrorReportingUtility
 
48
from canonical.launchpad.webapp.vhosts import allvhosts
 
49
from canonical.launchpad.xmlrpc import faults
46
50
from lp.code.interfaces.codehosting import (
47
51
    BRANCH_TRANSPORT,
48
52
    LAUNCHPAD_ANONYMOUS,
49
53
    )
50
54
from lp.codehosting.safe_open import safe_open
51
55
from lp.codehosting.vfs import get_lp_server
52
 
from lp.services.config import config
53
 
from lp.services.webapp.errorlog import ErrorReportingUtility
54
 
from lp.services.webapp.vhosts import allvhosts
55
 
from lp.xmlrpc import faults
56
56
 
57
57
 
58
58
robots_txt = '''\
238
238
            if not os.path.isdir(cachepath):
239
239
                os.makedirs(cachepath)
240
240
            self.log.info('branch_url: %s', branch_url)
241
 
            base_api_url = allvhosts.configs['api'].rooturl
 
241
            base_api_url = config.appserver_root_url('api')
242
242
            branch_api_url = '%s/%s/%s' % (
243
243
                base_api_url,
244
244
                'devel',