def __init__(self, pdfpath, cacheroot): self.pdf = Pdf(pdfpath) self.cacheroot = cacheroot if not os.path.exists(cacheroot): os.makedirs(cacheroot) File.__init__(self, pdfpath)
def __init__(self, path, bucketFilter=None, defaultType="text/html", ignoredExts=(), registry=None, allowExt=0): File.__init__(self, path, defaultType, ignoredExts, registry, allowExt) self.bucketFilter = bucketFilter
def __init__(self, path, defaultType='text/html', ignoredExts=(), registry=None, allowExt=0): """ Initialisation. """ File.__init__(self, path, defaultType, ignoredExts, registry, allowExt)
def __init__(self, bucket, path, defaultType="text/html", ignoredExts=(), registry=None, allowExt=0, pwdic=None): # print "Instantiating WebDAV instance:", path File.__init__(self, path, defaultType=defaultType, ignoredExts=ignoredExts, registry=registry, allowExt=allowExt) self.path = path self.pwdic = pwdic self.s3 = boto.connect_s3() self.bucket = self.s3.get_bucket(bucket) self.mapper = S3ObjectMapper()
def __init__(self, path, config, **kwargs): File.__init__(self, path, **kwargs) directory = config.get('directory', '') file = config.get('options', {}).get('default_file') self.path = os.path.join(directory, file)
def __init__(self, *args, **kwargs): self._cache_timeout = kwargs.pop('cache_timeout', None) self._allow_cross_origin = kwargs.pop('allow_cross_origin', True) File.__init__(self, *args, **kwargs)
def __init__(self, kid, path, **kw): self.kid = kid File.__init__(self, path, **kw)
def __init__(self, *args): File.__init__(self, *args)
def __init__(self, path, defaultType="text/html", ignoredExts=(), registry=None, allowExt=0): File.__init__(self,path, defaultType,ignoredExts,registry,allowExt)
def __init__(self, *args, **kwargs): self._cache_timeout = kwargs.pop('cache_timeout', None) File.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): File.__init__(self, *args, **kwargs) self.processors = {'.html': self._processTemplate} self.renderers = {}
def __init__(self, *args, **kwargs): File.__init__(self, *args, **kwargs) self.processors = {'.html': self._processTemplate} self.renderers = {}
def __init__(self, path, defaultType="text/html", ignoredExts=(), registry=None, allowExt=0, pwdic=None): File.__init__(self, path, defaultType=defaultType, ignoredExts=ignoredExts, registry=registry, allowExt=allowExt) self.pwdic = pwdic
def __init__(self, *args, **kwargs): File.__init__(self, *args, **kwargs) if not exists(self.path): raise OSError("%s does not exist" % self.path)
def __init__(self, *args, **kwargs): self._cache_timeout = kwargs.pop('cache_timeout', None) self._allow_cross_origin = kwargs.pop('allow_cross_origin', True) File.__init__(self, *args, **kwargs)
def __init__(self, path, site): File.__init__(self, path) self.path = path self.site = site self.not_found_resource = NotFoundResource(self.site)
def __init__(self,*args): File.__init__(self,*args)
def __init__(self, *args, **kwargs): self._cache_timeout = kwargs.pop('cache_timeout', None) File.__init__(self, *args, **kwargs)
def __init__(self, path, *args, **kwargs): File.__init__(self, path, *args, **kwargs) self.path = path