git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.onelab.eu/git/sfa
[sfa.git]
/
sfa
/
managers
/
registry_manager.py
diff --git
a/sfa/managers/registry_manager.py
b/sfa/managers/registry_manager.py
index
56062b9
..
941e4b0
100644
(file)
--- a/
sfa/managers/registry_manager.py
+++ b/
sfa/managers/registry_manager.py
@@
-29,7
+29,7
@@
class RegistryManager:
'urn':xrn.get_urn(),
'peers':peers})
'urn':xrn.get_urn(),
'peers':peers})
- def
get_c
redential(self, api, xrn, type, is_self=False):
+ def
GetC
redential(self, api, xrn, type, is_self=False):
# convert xrn to hrn
if type:
hrn = urn_to_hrn(xrn)[0]
# convert xrn to hrn
if type:
hrn = urn_to_hrn(xrn)[0]
@@
-89,7
+89,7
@@
class RegistryManager:
return new_cred.save_to_string(save_parents=True)
return new_cred.save_to_string(save_parents=True)
- def
r
esolve(self, api, xrns, type=None, full=True):
+ def
R
esolve(self, api, xrns, type=None, full=True):
# load all known registry names into a prefix tree and attempt to find
# the longest matching prefix
# load all known registry names into a prefix tree and attempt to find
# the longest matching prefix
@@
-147,7
+147,7
@@
class RegistryManager:
return records
return records
- def
l
ist(self, api, xrn, origin_hrn=None):
+ def
L
ist(self, api, xrn, origin_hrn=None):
hrn, type = urn_to_hrn(xrn)
# load all know registry names into a prefix tree and attempt to find
# the longest matching prefix
hrn, type = urn_to_hrn(xrn)
# load all know registry names into a prefix tree and attempt to find
# the longest matching prefix
@@
-182,7
+182,7
@@
class RegistryManager:
return records
return records
- def
create_g
id(self, api, xrn, cert):
+ def
CreateG
id(self, api, xrn, cert):
# get the authority
authority = Xrn(xrn=xrn).get_authority_hrn()
auth_info = api.auth.get_auth_info(authority)
# get the authority
authority = Xrn(xrn=xrn).get_authority_hrn()
auth_info = api.auth.get_auth_info(authority)
@@
-194,7
+194,7
@@
class RegistryManager:
gid = api.auth.hierarchy.create_gid(xrn, create_uuid(), pkey)
return gid.save_to_string(save_parents=True)
gid = api.auth.hierarchy.create_gid(xrn, create_uuid(), pkey)
return gid.save_to_string(save_parents=True)
- def
r
egister(self, api, record):
+ def
R
egister(self, api, record):
hrn, type = record['hrn'], record['type']
urn = hrn_to_urn(hrn,type)
hrn, type = record['hrn'], record['type']
urn = hrn_to_urn(hrn,type)
@@
-302,7
+302,7
@@
class RegistryManager:
return record.get_gid_object().save_to_string(save_parents=True)
return record.get_gid_object().save_to_string(save_parents=True)
- def
u
pdate(self, api, record_dict):
+ def
U
pdate(self, api, record_dict):
new_record = SfaRecord(dict = record_dict)
type = new_record['type']
hrn = new_record['hrn']
new_record = SfaRecord(dict = record_dict)
type = new_record['type']
hrn = new_record['hrn']
@@
-388,7
+388,7
@@
class RegistryManager:
return 1
# expecting an Xrn instance
return 1
# expecting an Xrn instance
- def
r
emove(self, api, xrn, origin_hrn=None):
+ def
R
emove(self, api, xrn, origin_hrn=None):
table = SfaTable()
filter = {'hrn': xrn.get_hrn()}
table = SfaTable()
filter = {'hrn': xrn.get_hrn()}
@@
-435,9
+435,3
@@
class RegistryManager:
table.remove(record)
return 1
table.remove(record)
return 1
-
- def remove_peer_object(self, api, record, origin_hrn=None):
- pass
-
- def register_peer_object(self, api, record, origin_hrn=None):
- pass