Exemplo n.º 1
0
    def __init__(self, root, base, baseurl, owners=None):
        UMAInformationProvider.__init__(self)
        if not os.path.isdir(root):
            os.mkdir(root)
        self.root = root
        self.base = base

        if baseurl.endswith("/"):
            baseurl = baseurl[:-1]

        self.baseurl = baseurl  # This is the http://domain:port part
        self.index = {}  # keys are owners, values are resource index
        if owners:
            for owner in owners:
                self.index[owner] = self.get_index(owner)
Exemplo n.º 2
0
    def __init__(self, root, base, baseurl, owners=None):
        UMAInformationProvider.__init__(self)
        if not os.path.isdir(root):
            os.mkdir(root)
        self.root = root
        self.base = base

        if baseurl.endswith("/"):
            baseurl = baseurl[:-1]

        self.baseurl = baseurl  # This is the http://domain:port part
        self.index = {}  # keys are owners, values are resource index
        if owners:
            for owner in owners:
                self.index[owner] = self.get_index(owner)
Exemplo n.º 3
0
Arquivo: idm.py Projeto: rohe/pyuma
 def __init__(self, db, base, scopes):
     UMAInformationProvider.__init__(self)
     self.db = db
     self.base = base
     self.scopes = scopes
Exemplo n.º 4
0
 def __init__(self, db, base, scopes):
     UMAInformationProvider.__init__(self)
     self.db = db
     self.base = base
     self.scopes = scopes
Exemplo n.º 5
0
Arquivo: _rs.py Projeto: dv10den/pyuma
 def __init__(self, db, base):
     UMAInformationProvider.__init__(self)
     self.db = db
     self.base = base