Changeset 88 for projects/Twisted-Goodies/trunk/examples
- Timestamp:
- 10/02/07 18:06:56 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/Twisted-Goodies/trunk/examples/foss.tellectual.com_index.py
r85 r88 30 30 from twisted.python.log import msg as log 31 31 32 from twisted_goodies.simpleserver.http import resources 32 from twisted_goodies.simpleserver.http.resources import \ 33 T, StanResource, DownloadResource, APIDocResource, TracResource 33 34 34 35 … … 79 80 80 81 81 class DisabledResource( resources.StanResource):82 class DisabledResource(StanResource): 82 83 addSlash = False 83 84 … … 92 93 93 94 94 class Resource( resources.StanResource):95 class Resource(StanResource): 95 96 """ 96 97 A home page for all of the trac project names and paths supplied in the … … 104 105 def __init__(self, vhostPath): 105 106 self.vhostPath = vhostPath 106 self.apiDocResource = resources.APIDocResource(107 self.apiDocResource = APIDocResource( 107 108 vhostPath, self.projectURLProto, 108 109 "file:///var/svn" + self.projectRepoProto) 109 self.downloadResource = resources.DownloadResource(110 self.downloadResource = DownloadResource( 110 111 vhostPath, self.projectURLProto, 111 112 "svn://foss.eepatents.com" + self.projectRepoProto) … … 131 132 'mod_python.subprocess_env':\ 132 133 {'PYTHON_EGG_CACHE': os.path.join(TRAC_DIR, 'python-eggs')}} 133 self.tr = resources.TracResource(TRAC_DIR, env)134 self.tr = TracResource(TRAC_DIR, env) 134 135 135 136 def _possibleStatic(self, *pathParts):
