(self)
| 267 | return self._delegate(fn, self.fvars, args) |
| 268 | |
| 269 | def handle_with_processors(self): |
| 270 | def process(processors): |
| 271 | try: |
| 272 | if processors: |
| 273 | p, processors = processors[0], processors[1:] |
| 274 | return p(lambda: process(processors)) |
| 275 | else: |
| 276 | return self.handle() |
| 277 | except web.HTTPError: |
| 278 | raise |
| 279 | except (KeyboardInterrupt, SystemExit): |
| 280 | raise |
| 281 | except: |
| 282 | print(traceback.format_exc(), file=web.debug) |
| 283 | raise self.internalerror() |
| 284 | |
| 285 | # processors must be applied in the reverse order. (??) |
| 286 | return process(self.processors) |
| 287 | |
| 288 | def wsgifunc(self, *middleware): |
| 289 | """Returns a WSGI-compatible function for this application.""" |
no outgoing calls
no test coverage detected