Пример #1
0
 def __init__(self, *args, **kwargs):
     try:
         self.rsc_id = kwargs.pop("_rsc_id")
     except KeyError:
         self.rsc_id = None
     CoreBaseHandler.__init__(self, *args, **kwargs)
     if "path" not in kwargs:
         kwargs["path"] = self.path
     self._enter = kwargs.pop("enter", None)
     StaticFileHandler.__init__(self, *args, **kwargs)
Пример #2
0
 def __init__(self, *args, extra_headers={}, **kwargs):
     self._extra_headers = extra_headers
     TornadosStaticFileHandler.__init__(self, *args, **kwargs)
Пример #3
0
 def __init__(self, *args, **kwargs):
     CoreRequestHandler.__init__(self, *args, **kwargs)
     StaticFileHandler.__init__(self, *args, **kwargs)