~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/twisted/words/toctap.py

  • Committer: Andreas Hasenack
  • Date: 2009-07-20 17:49:16 UTC
  • Revision ID: andreas@canonical.com-20090720174916-g2tn6qmietz2hn0u
Revert twisted removal, it breaks several dozen tests [trivial]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
 
3
# See LICENSE for details.
 
4
 
 
5
 
 
6
"""
 
7
Support module for making TOC servers with mktap.
 
8
"""
 
9
 
 
10
from twisted.words.protocols import toc
 
11
from twisted.python import usage
 
12
from twisted.application import strports
 
13
 
 
14
class Options(usage.Options):
 
15
    synopsis = "Usage: mktap toc [-p <port>]"
 
16
    optParameters = [["port", "p", "5190"]]
 
17
    longdesc = "Makes a TOC server."
 
18
 
 
19
def makeService(config):
 
20
    return strports.service(config['port'], toc.TOCFactory())