~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Martin Pool
  • Date: 2006-03-22 19:21:20 UTC
  • mto: (1668.1.8 bzr-0.8.mbp)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: mbp@sourcefrog.net-20060322192120-133f1e99d4c79477
Update xmlrpc api

Prompt for user password when registering

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    takes_args = ['branch_url']
51
51
 
52
52
    def run(self, branch_url):
53
 
        from lp_registration import BranchRegistrationRequest
54
 
        def _find_default_branch_id(branch_url):
55
 
            i = branch_url.rfind('/')
56
 
            return branch_url[i+1:]
57
 
        branch_id = _find_default_branch_id(branch_url)
58
 
        rego = BranchRegistrationRequest(branch_url, branch_id)
59
 
        rego.submit()
 
53
        from lp_registration import register_interactive
 
54
        register_interactive(branch_url)
60
55
 
61
56
register_command(cmd_register_branch)
62
57