~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/interfaces/codehosting.py

  • Committer: j.c.sackett
  • Date: 2011-04-20 14:22:51 UTC
  • mfrom: (12884 devel)
  • mto: This revision was merged to the branch mainline in revision 12888.
  • Revision ID: jonathan.sackett@canonical.com-20110420142251-gzcq87wlxzqse4r1
MergedĀ inĀ devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
__metaclass__ = type
9
9
__all__ = [
10
10
    'BRANCH_ALIAS_PREFIX',
 
11
    'branch_id_alias',
11
12
    'BRANCH_ID_ALIAS_PREFIX',
12
13
    'BRANCH_TRANSPORT',
13
14
    'compose_public_url',
60
61
BRANCH_ID_ALIAS_PREFIX = '+branch-id'
61
62
 
62
63
 
 
64
def branch_id_alias(branch):
 
65
    """Return the path using the branch id alias."""
 
66
    return '/%s/%s' % (BRANCH_ID_ALIAS_PREFIX, branch.id)
 
67
 
 
68
 
63
69
# The scheme types that are supported for codehosting.
64
70
SUPPORTED_SCHEMES = 'bzr+ssh', 'http'
65
71