1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
# See LICENSE for details.
4
from zope.interface import implements
6
from twisted.plugin import IPlugin
7
from twisted.web2.iweb import IResource
9
class _Web2ResourcePlugin(object):
10
implements(IPlugin, IResource)
12
def __init__(self, name, className, description):
14
self.className = className
15
self.description = description
17
TestResource = _Web2ResourcePlugin("TestResource",
18
"twisted.web2.plugin.TestResource",
19
"I'm a test resource")
22
from twisted.scripts.mktap import _tapHelper
24
TwistedWeb2 = _tapHelper('Twisted Web2',
26
("An HTTP/1.1 web server that can serve from a "
27
"filesystem or application resource."),