Changeset 24674
- Timestamp:
- 09/02/2008 11:57:09 AM (10 months ago)
- Files:
-
-
branches/run-plugin-1490-2/twisted/conch/tap.py (modified) (2 diffs)
-
branches/run-plugin-1490-2/twisted/mail/tap.py (modified) (2 diffs)
-
branches/run-plugin-1490-2/twisted/names/tap.py (modified) (2 diffs)
-
branches/run-plugin-1490-2/twisted/web/tap.py (modified) (3 diffs)
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
-
branches/run-plugin-1490-2/twisted/conch/tap.py
r24673 r24674 2 2 # See LICENSE for details. 3 3 4 # 5 # Twisted, the Framework of Your Internet 6 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. 7 # See LICENSE for details. 8 9 4 10 """ 5 Support module for making SSH servers with mktap.11 I am a support module for making SSH servers with mktap. 6 12 """ 7 13 … … 11 17 from twisted.python import usage 12 18 from twisted.application import strports 13 14 19 15 20 -
branches/run-plugin-1490-2/twisted/mail/tap.py
r24673 r24674 1 1 # -*- test-case-name: twisted.mail.test.test_options -*- 2 # Copyright (c) 2001-200 8Twisted Matrix Laboratories.2 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. 3 3 # See LICENSE for details. 4 4 5 """ 6 Support module for creating mail servers with 'mktap'5 6 """I am the support module for creating mail servers with 'mktap' 7 7 """ 8 8 9 9 import os 10 import sys 10 11 11 12 from twisted.mail import mail … … 19 20 from twisted.cred import checkers 20 21 from twisted.application import internet 21 22 22 23 23 -
branches/run-plugin-1490-2/twisted/names/tap.py
r24673 r24674 1 # Copyright (c) 2001-200 8Twisted Matrix Laboratories.1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. 2 2 # See LICENSE for details. 3 3 4 4 5 """ … … 15 16 from twisted.names import authority 16 17 from twisted.names import secondary 17 18 19 18 20 19 class Options(usage.Options): -
branches/run-plugin-1490-2/twisted/web/tap.py
r24673 r24674 8 8 import os 9 9 10 from twisted.web import server, static, twcgi, script, demo, distrib, trp 11 from twisted.internet import interfaces 12 from twisted.python import usage, reflect 10 # Twisted Imports 11 from twisted.web import server, static, twcgi, script, demo, distrib, trp, wsgi 12 from twisted.internet import interfaces, reactor 13 from twisted.python import usage, reflect, threadpool 13 14 from twisted.spread import pb 14 15 from twisted.application import internet, service, strports 15 16 16 17 17 … … 62 62 63 63 def opt_path(self, path): 64 """<path> is either a specific file or a directory to 65 be set as the root of the web server. Use this if you 66 have a directory full of HTML, cgi, php3, epy, or rpy files or 67 any other files that you want to be served up raw. 64 """ 65 <path> is either a specific file or a directory to be set as the root 66 of the web server. Use this if you have a directory full of HTML, cgi, 67 php3, epy, or rpy files or any other files that you want to be served 68 up raw. 68 69 """ 69 70 … … 105 106 """An .rpy file to be used as the root resource of the webserver.""" 106 107 self['root'] = script.ResourceScriptWrapper(name) 108 109 110 def opt_wsgi(self, name): 111 """ 112 The FQPN of a WSGI application object to serve as the root resource of 113 the webserver. 114 """ 115 pool = threadpool.ThreadPool() 116 reactor.callWhenRunning(pool.start) 117 reactor.addSystemEventTrigger('after', 'shutdown', pool.stop) 118 try: 119 application = reflect.namedAny(name) 120 except (AttributeError, ValueError): 121 raise usage.UsageError("No such WSGI application: %r" % (name,)) 122 self['root'] = wsgi.WSGIResource(reactor, pool, application) 107 123 108 124
