Changeset 75
- Timestamp:
- 08/16/07 15:08:49 (1 year ago)
- Files:
-
- projects/AsynQueue/branches/processworker (copied) (copied from projects/AsynQueue/trunk)
- projects/AsynQueue/branches/processworker/asynqueue/pbstdio.py (added)
- projects/Twisted-Goodies/trunk/misc/var_www_foss.tellectual.com_index.py (modified) (2 diffs)
- projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/wsgi.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/Twisted-Goodies/trunk/misc/var_www_foss.tellectual.com_index.py
r74 r75 79 79 80 80 81 class DisabledResource(StanResource): 82 addSlash = False 83 84 def __init__(self, whatDisabled): 85 self.whatDisabled = whatDisabled 86 self.title = "%s Temporarily Disabled" % whatDisabled 87 88 def render(self, request): 89 return [ 90 T.h2[self.title], 91 T.p["Hopefully this should be fixed soon."]] 92 81 93 82 94 class Resource(StanResource): … … 210 222 listOp('append', 'wiki') 211 223 root, isAtRoot = rootState(subSegments) 224 if root == 'changeset': 225 # TODO, hopefully won't need this long 226 return DisabledResource("Changeset Listings"), () 212 227 if root == 'wiki' and len(subSegments) > 1: 213 228 subRoot = subSegments[1] projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/wsgi.py
r71 r75 136 136 137 137 138 class WSGIResource( TracerMixin,object):138 class WSGIResource(object): 139 139 """ 140 140 A web2 Resource which wraps the given WSGI application callable. … … 172 172 self.handlers.append(handler) 173 173 # Queue it up for running in the thread 174 if self.isTracing: 175 d = defer.succeed(None) 176 else: 177 d = self.queue.call(self.settrace) 178 d.addCallback(lambda _: self.queue.call(handler.run)) 179 d.addBoth(done, IP) 174 self.queue.call(handler.run).addBoth(done, IP) 180 175 # We get the result piecemeal from this method call's unique handler, 181 176 # not in some single result of the run method. So there's no need to do
