def __init__(self, name, author=None, *args, **kwargs): self.author = author super(FsStorage, self).__init__(name, *args, **kwargs) FileSystemStorage.__init__(self, os.path.join( self.base_dir, self.name)) if name: self.init_project()
def __init__(self, **kwargs): options = kwargs.get("options", None) location = kwargs.get("location", None) base_url = kwargs.get("base_url", None) # TODO if django >= 1.6: file_permissions_mode ThumborStorage.__init__(self, options) FileSystemStorage.__init__(self, location=location, base_url=base_url)
def __init__(self, name, author=None, *args, **kwargs): self.author = author super(FsStorage, self).__init__(name, *args, **kwargs) FileSystemStorage.__init__(self, os.path.join(self.base_dir, self.name)) if name: self.init_project()
def __init__(self, **kwargs): options = kwargs.get("options", None) location = kwargs.get("location", None) base_url = kwargs.get("base_url", None) # TODO if django >= 1.6: file_permissions_mode ThumborStorage.__init__(self, options) FileSystemStorage.__init__(self, location=location, base_url=base_url)
def __init__(self, location=None, base_url=None, file_permissions_mode=None, directory_permissions_mode=None): FileSystemStorage.__init__(self, location, base_url, file_permissions_mode, directory_permissions_mode) self.location = location
def __init__(self, location=None, logger=None): # Get location from Settings, if not mentioned PAGES_FILE_LOCATION must be set in settings if not location: location = settings.PAGES_EXT_FILE_LOCATION self.logger = logger # Initialize super class FileSystemStorage.__init__(self, location=location) self.file_permissions_mode = settings.PAGES_EXT_FILE_UPLOAD_PERMISSIONS if getattr(settings, "FILE_UPLOAD_DIRECTORY_PERMISSIONS", False): self.directory_permissions_mode = settings.PAGES_EXT_FILE_UPLOAD_DIRECTORY_PERMISSIONS # add log self.__log("PageExtFileSystemStorage initialized.")
def __init__(self, location=None, logger=None): # Get location from Settings, if not mentioned PAGES_FILE_LOCATION must be set in settings if not location: location = settings.PAGES_EXT_FILE_LOCATION self.logger = logger # Initialize super class FileSystemStorage.__init__(self, location=location) self.file_permissions_mode = settings.PAGES_EXT_FILE_UPLOAD_PERMISSIONS if getattr(settings, 'FILE_UPLOAD_DIRECTORY_PERMISSIONS', False): self.directory_permissions_mode = settings.PAGES_EXT_FILE_UPLOAD_DIRECTORY_PERMISSIONS # add log self.__log('PageExtFileSystemStorage initialized.')
def __init__(self, location=None): if not location: location = settings.MAILQUEUE_ROOT FileSystemStorage.__init__(self, location=location)
def __init__(self, hosts=None, base_url=None, location=None): DistributedStorageMixin.__init__(self, hosts, base_url) FileSystemStorage.__init__(self, location, base_url)
def __init__(self, location=settings.MEDIA_ROOT, base_url=settings.MEDIA_URL, symlinkWithin=None): FileSystemStorage.__init__(self, location, base_url) self.symlinkWithin = symlinkWithin.split(":")
def __init__(self, location=None): if not location: location = settings.MAILQUEUE_ROOT FileSystemStorage.__init__(self, location=location)
def __init__(self, base, storage): FileSystemStorage.__init__(self, location=base, base_url=None) self.storage = storage
def __init__(self, location=settings.MEDIA_ROOT, base_url=settings.MEDIA_URL, symlinkWithin=None): FileSystemStorage.__init__(self, location, base_url) self.symlinkWithin = symlinkWithin.split(":")
def __init__(self, location=None, base_url=None): FileSystemStorage.__init__(self, location=location, base_url=base_url)
def __init__(self, hosts=None, base_url=None, location=None): DistributedStorageMixin.__init__(self, hosts, base_url) FileSystemStorage.__init__(self, location, base_url)