7387.2.1
by Celso Providelo
Extend testing keyserver (zeca) to support key uploads. |
1 |
# Copyright 2004-2008 Canonical Ltd. All rights reserved.
|
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
2 |
|
3 |
# Twisted Application Configuration file.
|
|
4 |
# Use with "twistd2.3 -y <file.tac>", e.g. "twistd -noy server.tac"
|
|
5 |
||
6 |
from twisted.application import service, internet, strports |
|
7 |
from twisted.web import server |
|
8 |
||
9 |
from canonical.config import config |
|
2240
by Canonical.com Patch Queue Manager
My librarian-cleanups branch, held up by baz confusion. r=BjornT |
10 |
from canonical.launchpad.daemons import tachandler |
7387.2.1
by Celso Providelo
Extend testing keyserver (zeca) to support key uploads. |
11 |
from canonical.launchpad.scripts import execute_zcml_for_scripts |
12 |
from canonical.zeca import Zeca, KeyServer, LookUp, SubmitKey |
|
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
13 |
|
7387.2.1
by Celso Providelo
Extend testing keyserver (zeca) to support key uploads. |
14 |
# Needed for using IGPGHandler for processing key submit.
|
15 |
execute_zcml_for_scripts() |
|
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
16 |
|
2098
by Canonical.com Patch Queue Manager
[r=mpt,jamesh,stub] New GPG/CoC features, new key validation workflow, encrypt/decrypt support, reviewed UI and GPGKey.revoked renamed to active. |
17 |
root = config.zeca.root |
18 |
||
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
19 |
application = service.Application('Zeca') |
20 |
zecaService = service.IServiceCollection(application) |
|
21 |
||
2240
by Canonical.com Patch Queue Manager
My librarian-cleanups branch, held up by baz confusion. r=BjornT |
22 |
# Service that announces when the daemon is ready
|
23 |
tachandler.ReadyService().setServiceParent(zecaService) |
|
24 |
||
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
25 |
zeca = Zeca() |
26 |
keyserver = KeyServer() |
|
2098
by Canonical.com Patch Queue Manager
[r=mpt,jamesh,stub] New GPG/CoC features, new key validation workflow, encrypt/decrypt support, reviewed UI and GPGKey.revoked renamed to active. |
27 |
keyserver.putChild('lookup', LookUp(root)) |
7387.2.1
by Celso Providelo
Extend testing keyserver (zeca) to support key uploads. |
28 |
keyserver.putChild('add', SubmitKey(root)) |
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
29 |
zeca.putChild('pks', keyserver) |
7387.2.1
by Celso Providelo
Extend testing keyserver (zeca) to support key uploads. |
30 |
|
1867
by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub |
31 |
site = server.Site(zeca) |
32 |
site.displayTracebacks = False |
|
33 |
strports.service('11371', site).setServiceParent(zecaService) |