~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.
12398.1.7 by Jonathan Lange
Move zeca.tac out of daemons and rename it.
5
# Use with "twistd -y <file.tac>", e.g. "twistd -noy server.tac"
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
6
12398.1.1 by Jonathan Lange
Move canonical.zeca to lp.services.keyserver.
7
from twisted.application import service, strports
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
8
from twisted.web import server
9
10
from canonical.config import config
14600.2.6 by Curtis Hovey
Moved daemons to lp.services.
11
from lp.services.daemons import readyservice
14565.2.15 by Curtis Hovey
Moved canonical.launchpad.scripts __init__ to lp.services.scripts.
12
from lp.services.scripts import execute_zcml_for_scripts
12398.1.18 by Jonathan Lange
Rename the thing with all the web resources to 'web'
13
from lp.testing.keyserver.web import KeyServerResource
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
12398.1.17 by Jonathan Lange
Don't call the root resource zeca.
18
application = service.Application('testkeyserver')
19
svc = service.IServiceCollection(application)
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
20
2240 by Canonical.com Patch Queue Manager
My librarian-cleanups branch, held up by baz confusion. r=BjornT
21
# Service that announces when the daemon is ready
12398.1.17 by Jonathan Lange
Don't call the root resource zeca.
22
readyservice.ReadyService().setServiceParent(svc)
23
24
site = server.Site(KeyServerResource(config.testkeyserver.root))
1867 by Canonical.com Patch Queue Manager
Reviewed Claim GPG key, stubed keyserver, minor improves on GpgHandler and pagetest review r=jamesh,stub
25
site.displayTracebacks = False
12398.1.17 by Jonathan Lange
Don't call the root resource zeca.
26
12398.1.21 by Jonathan Lange
Configure the port correctly, via gpghandler.
27
# Run on the port that gpghandler is configured to hit.
28
port = 'tcp:%s' % (config.gpghandler.port,)
29
strports.service(port, site).setServiceParent(svc)