11262.3.6
by Curtis Hovey
Hush lint. |
1 |
The BranchPuller application |
2 |
============================ |
|
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
3 |
|
4 |
The codehosting application is an XMLRPC service that allows the |
|
5 |
codehosting service and puller to find and update the status of |
|
6 |
branches. It is available as the codehosting attribute of our private |
|
7 |
XMLRPC instance. |
|
8 |
||
14593.1.5
by Curtis Hovey
Moved IPrivateApplication to lp.xmlrpc. |
9 |
>>> from lp.xmlrpc.interfaces import IPrivateApplication |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
10 |
>>> from lp.code.interfaces.codehosting import ( |
11 |
... ICodehostingApplication) |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
12 |
>>> from lp.services.webapp.testing import verifyObject |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
13 |
|
14 |
>>> private_root = getUtility(IPrivateApplication) |
|
15 |
>>> verifyObject( |
|
16 |
... ICodehostingApplication, |
|
17 |
... private_root.codehosting) |
|
18 |
True |
|
19 |
||
9590.1.141
by Michael Hudson
tiny correction |
20 |
The CodehostingAPI view provides the ICodehostingAPI XML-RPC API: |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
21 |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
22 |
>>> from lp.services.webapp.servers import LaunchpadTestRequest |
9590.1.59
by Michael Hudson
rename ICodehosting -> ICodehostingAPI, Codehosting -> CodehostingAPI |
23 |
>>> from lp.code.interfaces.codehosting import ICodehostingAPI |
24 |
>>> from lp.code.xmlrpc.codehosting import CodehostingAPI |
|
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
25 |
|
9590.1.59
by Michael Hudson
rename ICodehosting -> ICodehostingAPI, Codehosting -> CodehostingAPI |
26 |
>>> codehosting_api = CodehostingAPI( |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
27 |
... private_root.codehosting, LaunchpadTestRequest()) |
9590.1.59
by Michael Hudson
rename ICodehosting -> ICodehostingAPI, Codehosting -> CodehostingAPI |
28 |
>>> verifyObject(ICodehostingAPI, codehosting_api) |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
29 |
True |
30 |
||
9590.1.59
by Michael Hudson
rename ICodehosting -> ICodehostingAPI, Codehosting -> CodehostingAPI |
31 |
The ICodehostingAPI interface defines some methods, for which see the |
9590.1.48
by Michael Hudson
a start at combining the puller and filesystem endpoints |
32 |
unit tests. |