1
= The BranchPuller application =
3
The codehosting application is an XMLRPC service that allows the
4
codehosting service and puller to find and update the status of
5
branches. It is available as the codehosting attribute of our private
8
>>> from canonical.launchpad.interfaces import (
9
... IPrivateApplication)
10
>>> from lp.code.interfaces.codehosting import (
11
... ICodehostingApplication)
12
>>> from canonical.launchpad.webapp.testing import verifyObject
14
>>> private_root = getUtility(IPrivateApplication)
16
... ICodehostingApplication,
17
... private_root.codehosting)
20
The CodeHosting view provides the ICodehosting XML-RPC API:
22
>>> from canonical.launchpad.webapp.servers import LaunchpadTestRequest
23
>>> from lp.code.interfaces.codehosting import ICodehosting
24
>>> from lp.code.xmlrpc.codehosting import Codehosting
26
>>> codehosting_api = Codehosting(
27
... private_root.codehosting, LaunchpadTestRequest())
28
>>> verifyObject(ICodehosting, codehosting_api)
31
The ICodehosting interface defines some methods, for which see the