def __init__(self, path, environ, vfile):
     DAVNonCollection.__init__(self, path, environ)
     self.vfile = vfile
     self.content = self.vfile.content
     self._title = j.sal.fs.getBaseName(self.vfile.name)
     self._model = self.provider._file_model
     self._block_model = self.provider._block_model
Example #2
0
    def __init__(self, container, objectname, environ, objects=None):
        self.container = container
        self.objectname = objectname
        self.environ = environ
        self.objects = objects

        path = '/' + self.container + '/' + self.objectname
        DAVNonCollection.__init__(self, path, environ)
        self.auth_token = self.environ.get('swift_auth_token')
        self.storage_url = self.environ.get('swift_storage_url')

        self.headers = None
        self.tmpfile = None
        self.http_connection = client.http_connection(
            self.storage_url,
            insecure=self.environ.get('insecure'))
Example #3
0
 def __init__(self, path, environ):
     DAVNonCollection.__init__(self, path, environ)
Example #4
0
 def __init__(self, path, environ, doc):
     DAVNonCollection.__init__(self, path, environ)
     self.doc = doc
 def __init__(self, path, environ, url):
     DAVNonCollection.__init__(self, path, environ)
     self.url = url
 def __init__(self, path, environ, doc):
     DAVNonCollection.__init__(self, path, environ)
     self.doc = doc
Example #7
0
 def __init__(self, path, environ):
     DAVNonCollection.__init__(self, path, environ)
Example #8
0
 def __init__(self, path, environ, file_info):
     DAVNonCollection.__init__(self, path, environ)
     self.file_info = file_info
Example #9
0
 def __init__(self, path, environ, url, refurl, cookie):
     DAVNonCollection.__init__(self, path, environ)
     self.url = url.split('?')[0]
     self.refurl = refurl
     self.cookie = cookie
Example #10
0
 def __init__(self, path, environ, ndrive, info):
     DAVNonCollection.__init__(self, path, environ)
     self.ndrive = ndrive
     self.info = info