~landscape/zope3/newer-from-ztk

« back to all changes in this revision

Viewing changes to src/twisted/plugins/twisted_web2.py

  • Committer: Thomas Hervé
  • Date: 2009-07-08 13:52:04 UTC
  • Revision ID: thomas@canonical.com-20090708135204-df5eesrthifpylf8
Remove twisted copy

Show diffs side-by-side

added added

removed removed

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