~launchpad-pqm/launchpad/devel

8687.15.8 by Karl Fogel
Add the copyright header block to more files.
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
3
4
# Twisted Application Configuration file.
5
# Use with "twistd2.3 -y <file.tac>", e.g. "twistd -noy server.tac"
6
7
from twisted.application import service, internet, strports
8
from twisted.web import server
9
10
from canonical.config import config
2240 by Canonical.com Patch Queue Manager
My librarian-cleanups branch, held up by baz confusion. r=BjornT
11
from canonical.launchpad.daemons import tachandler
7387.2.1 by Celso Providelo
Extend testing keyserver (zeca) to support key uploads.
12
from canonical.launchpad.scripts import execute_zcml_for_scripts
13
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
14
7387.2.1 by Celso Providelo
Extend testing keyserver (zeca) to support key uploads.
15
# Needed for using IGPGHandler for processing key submit.
16
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
17
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.
18
root = config.zeca.root
19
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
20
application = service.Application('Zeca')
21
zecaService = service.IServiceCollection(application)
22
2240 by Canonical.com Patch Queue Manager
My librarian-cleanups branch, held up by baz confusion. r=BjornT
23
# Service that announces when the daemon is ready
24
tachandler.ReadyService().setServiceParent(zecaService)
25
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
26
zeca = Zeca()
27
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.
28
keyserver.putChild('lookup', LookUp(root))
7387.2.1 by Celso Providelo
Extend testing keyserver (zeca) to support key uploads.
29
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
30
zeca.putChild('pks', keyserver)
7387.2.1 by Celso Providelo
Extend testing keyserver (zeca) to support key uploads.
31
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
32
site = server.Site(zeca)
33
site.displayTracebacks = False
34
strports.service('11371', site).setServiceParent(zecaService)