Exemplo n.º 1
0
 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
Exemplo n.º 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'))
Exemplo n.º 3
0
 def __init__(self, path, environ):
     DAVNonCollection.__init__(self, path, environ)
Exemplo n.º 4
0
 def __init__(self, path, environ, doc):
     DAVNonCollection.__init__(self, path, environ)
     self.doc = doc
Exemplo n.º 5
0
 def __init__(self, path, environ, url):
     DAVNonCollection.__init__(self, path, environ)
     self.url = url
Exemplo n.º 6
0
 def __init__(self, path, environ, doc):
     DAVNonCollection.__init__(self, path, environ)
     self.doc = doc
Exemplo n.º 7
0
 def __init__(self, path, environ):
     DAVNonCollection.__init__(self, path, environ)
Exemplo n.º 8
0
 def __init__(self, path, environ, file_info):
     DAVNonCollection.__init__(self, path, environ)
     self.file_info = file_info
Exemplo n.º 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
Exemplo n.º 10
0
 def __init__(self, path, environ, ndrive, info):
     DAVNonCollection.__init__(self, path, environ)
     self.ndrive = ndrive
     self.info = info