Beispiel #1
0
 def __init__(self, path, environ, displayInfo, memberNameList):
     DAVCollection.__init__(self, path, environ)
     if isinstance(displayInfo, basestring):
         displayInfo = { "type": displayInfo }
     assert type(displayInfo) is dict
     assert type(memberNameList) is list
     self.displayInfo = displayInfo
     self.memberNameList = memberNameList
Beispiel #2
0
    def __init__(self, environ, path):
        DAVCollection.__init__(self, '/', environ)
        self.path = path

        self.auth_token = self.environ.get('swift_auth_token')
        self.storage_url = self.environ.get('swift_storage_url')
        self.http_connection = client.http_connection(
            self.storage_url,
            insecure=self.environ.get('insecure'))
Beispiel #3
0
    def __init__(self, container, environ, prefix=None, path=None):
        self.path = path
        path = container
        if path[0] != '/':
            path = '/' + path
        if prefix:
            path += '/' + prefix
        DAVCollection.__init__(self, path, environ)
        self.name = path
        self.prefix = prefix
        self.container = container
        if self.prefix:
            self.prefix += '/'
        self.auth_token = self.environ.get('swift_auth_token')
        self.storage_url = self.environ.get('swift_storage_url')
        self.objects = {}

        self.http_connection = client.http_connection(
            self.storage_url,
            insecure=self.environ.get('insecure'))
 def __init__(self, path, environ, catType):
     DAVCollection.__init__(self, path, environ)
     self.catType = catType
 def __init__(self, path, environ):
     DAVCollection.__init__(self, path, environ)
 def __init__(self, path, environ, coll):
     DAVCollection.__init__(self, path, environ)
     self.conn = self.provider.conn
     self.coll = coll
 def __init__(self, path, environ):
     DAVCollection.__init__(self, path, environ)
     self.conn = self.provider.conn
     self.db = self.conn[self.name]
 def __init__(self, path, environ, data):
     DAVCollection.__init__(self, path, environ)
     self.data = data
 def __init__(self, path, environ, pname):
     DAVCollection.__init__(self, path, environ)
     self.pname = pname
Beispiel #10
0
 def __init__(self, path, environ):
     DAVCollection.__init__(self, path, environ)
     self.conn = self.provider.conn
     self.db = self.conn[self.name]
 def __init__(self, environ):
     DAVCollection.__init__(self, "/", environ)
Beispiel #12
0
 def __init__(self, path, environ):
     DAVCollection.__init__(self, path, environ)
     self.items = ['#']
     self.items.append(map(chr, range(ord('A'), ord('Z') + 1)))
Beispiel #13
0
 def __init__(self, path, environ, baseurl):
     DAVCollection.__init__(self, path, environ)
     self.baseurl = baseurl
Beispiel #14
0
 def __init__(self, path, environ, url):
     DAVCollection.__init__(self, path, environ)
     self.url = url
 def __init__(self, path, environ, data):
     DAVCollection.__init__(self, path, environ)
     self.data = data
 def __init__(self, path, environ):
     DAVCollection.__init__(self, path, environ)
 def __init__(self, environ):
     DAVCollection.__init__(self, "/", environ)
 def __init__(self, path, environ, catType):
     DAVCollection.__init__(self, path, environ)
     self.catType = catType
Beispiel #19
0
 def __init__(self, path, environ, coll):
     DAVCollection.__init__(self, path, environ)
     self.conn = self.provider.conn
     self.coll = coll
Beispiel #20
0
 def __init__(self, path, environ, list_type):
     DAVCollection.__init__(self, path, environ)
     self.list_type = list_type