def get_content_type(self): _file = hash_row(self.application.redis, FileInfo, "uuid." + self.path) if _file is None: logging.error("Error no file:%s." % (self.path)) return None return _file.file_mime
def get_content_type(self): _file = hash_row( self.application.redis, FileInfo, "uuid." + self.path ) if _file is None: logging.error("Error no file:%s." % (self.path)) return None return _file.file_mime
def get_absolute_path(cls, root, path): if cls._redis is None: logging.error("Error for no redis set.") return None path = path[len("user_icon/") :] _file = hash_row(cls._redis, FileInfo, "uuid." + path) if _file is None: logging.error("Error no file:%s." % (path)) return None return _file.file_path
def get_absolute_path(cls, root, path): if cls._redis is None: logging.error("Error for no redis set.") return None path = path[len("user_icon/"):] _file = hash_row( cls._redis, FileInfo, "uuid." + path ) if _file is None: logging.error("Error no file:%s." % (path)) return None return _file.file_path