Beispiel #1
0
 def initialize(self, **kwargs):
     if 'no_cache' in kwargs:
         self._no_cache = kwargs['no_cache']
         del kwargs['no_cache']
     else:
         self._no_cache = False
     StaticFileHandler.initialize(self, **kwargs)
Beispiel #2
0
 def initialize(self, **kwargs):
     if 'no_cache' in kwargs:
         self._no_cache = kwargs['no_cache']
         del kwargs['no_cache']
     else:
         self._no_cache = False
     StaticFileHandler.initialize(self, **kwargs)
Beispiel #3
0
 def initialize(self,
                path,
                default_filename=None,
                as_attachment=False,
                access_validation=None):
     StaticFileHandler.initialize(self, path, default_filename)
     self._as_attachment = as_attachment
     self._access_validation = access_validation
Beispiel #4
0
 def initialize(self, path=None, default_filename=None, *args, **kwargs):
     path = path or self.path or ""
     default_filename = default_filename or self.default_filename
     StaticFileHandler.initialize(self, path, default_filename)
     for attr, value in self.propagate_property(self, kwargs):
         self.__dict__[attr] = value
     if issubclass(self.__class__, CoreStaticFileHandler):
         parent = self.application.container
     else:
         parent = self
     if path.startswith("/"):
         base = parent.project_path()
         path = path[1:]
     else:
         base = parent.pathname()
     self.root = os.path.join(base, path)
Beispiel #5
0
    def initialize(self):
        # return custom type directly. The browser will do the parsing
        self.custom_type = None

        uri = self.get_argument('uri')

        try:
            self.modgui = get_plugin_gui(uri)
        except:
            raise HTTPError(404)

        try:
            root = self.modgui['resourcesDirectory']
        except:
            raise HTTPError(404)

        return StaticFileHandler.initialize(self, root)
Beispiel #6
0
    def initialize(self):
        # return custom type directly. The browser will do the parsing
        self.custom_type = None

        uri = self.get_argument('uri')

        try:
            self.modgui = get_plugin_gui(uri)
        except:
            raise HTTPError(404)

        try:
            root = self.modgui['resourcesDirectory']
        except:
            raise HTTPError(404)

        return StaticFileHandler.initialize(self, root)
Beispiel #7
0
 def initialize(self):
     StaticFileHandler.initialize(self, os.path.join(os.path.dirname(__file__), "data"))
Beispiel #8
0
 def initialize(self, path, default_filename=None, as_attachment=False):
     StaticFileHandler.initialize(self, path, default_filename)
     self._as_attachment = as_attachment
Beispiel #9
0
 def initialize(self):
     StaticFileHandler.initialize(
         self, os.path.join(os.path.dirname(__file__), "data"))
Beispiel #10
0
 def initialize(self):
     StaticFileHandler.initialize(self, UPLOAD_PATH)
Beispiel #11
0
 def initialize(self):
     StaticFileHandler.initialize(self, STATIC_ROOT)
Beispiel #12
0
 def initialize(self, *args):
     self.root = ""
     IPythonHandler.initialize(self, *args)
     StaticFileHandler.initialize(self, "", *args)
Beispiel #13
0
 def initialize(self, path, default_filename=None):
     self._check_dir_(path)
     StaticFileHandler.initialize(self, path, default_filename)
Beispiel #14
0
 def initialize(self, path, default_filename=None, others=None):
     StaticFileHandler.initialize(self, path, default_filename)
     self._others = others if others else self.application.settings["static_handler_args"]["others"]
Beispiel #15
0
 def initialize(self):
     StaticFileHandler.initialize(self, UPLOAD_PATH)
Beispiel #16
0
 def initialize(self):
     StaticFileHandler.initialize(self, STATIC_ROOT)
Beispiel #17
0
	def initialize(self, path, default_filename=None, as_attachment=False, access_validation=None):
		StaticFileHandler.initialize(self, path, default_filename)
		self._as_attachment = as_attachment
		self._access_validation = access_validation
Beispiel #18
0
 def initialize(self, path, default_filename=None, as_attachment=False):
     StaticFileHandler.initialize(self, path, default_filename)
     self._as_attachment = as_attachment
Beispiel #19
0
 def initialize(self, path, default_filename=None):
     StaticFileHandler.initialize(self, path, default_filename)
Beispiel #20
0
	def initialize(self):
		StaticFileHandler.initialize(self, 
			self.controllers[Resource].styles_file_dir)