git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81ec6a0
)
Functions must be capitalized now. NT.
author
Nicolas Turro
<Nicolas.Turro@inria.fr>
Fri, 18 Nov 2011 16:41:07 +0000
(17:41 +0100)
committer
Nicolas Turro
<Nicolas.Turro@inria.fr>
Fri, 18 Nov 2011 16:41:07 +0000
(17:41 +0100)
sfa/managers/registry_manager_slab.py
patch
|
blob
|
history
diff --git
a/sfa/managers/registry_manager_slab.py
b/sfa/managers/registry_manager_slab.py
index
c80bb4c
..
ed9c2c6
100644
(file)
--- a/
sfa/managers/registry_manager_slab.py
+++ b/
sfa/managers/registry_manager_slab.py
@@
-29,7
+29,7
@@
def GetVersion(api):
'urn':xrn.get_urn(),
'peers':peers})
'urn':xrn.get_urn(),
'peers':peers})
-def
get_c
redential(api, xrn, type, is_self=False):
+def
GetC
redential(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]
@@
-104,7
+104,7
@@
def get_credential(api, xrn, type, is_self=False):
return new_cred.save_to_string(save_parents=True)
return new_cred.save_to_string(save_parents=True)
-def
r
esolve(api, xrns, type=None, full=True):
+def
R
esolve(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
@@
-179,7
+179,7
@@
def resolve(api, xrns, type=None, full=True):
return records
return records
-def
l
ist(api, xrn, origin_hrn=None):
+def
L
ist(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
@@
-215,7
+215,7
@@
def list(api, xrn, origin_hrn=None):
return records
return records
-def
r
egister(api, record):
+def
R
egister(api, record):
#hrn, type = record['hrn'], record['type']
#hrn, type = record['hrn'], record['type']
@@
-350,7
+350,7
@@
def register(api, record):
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(api, record_dict):
+def
U
pdate(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']
@@
-437,7
+437,7
@@
def update(api, record_dict):
return 1
# expecting an Xrn instance
return 1
# expecting an Xrn instance
-def
r
emove(api, xrn, origin_hrn=None):
+def
R
emove(api, xrn, origin_hrn=None):
table = SfaTable()
filter = {'hrn': xrn.get_hrn()}
table = SfaTable()
filter = {'hrn': xrn.get_hrn()}
@@
-485,8
+485,3
@@
def remove(api, xrn, origin_hrn=None):
return 1
return 1
-def remove_peer_object(api, record, origin_hrn=None):
- pass
-
-def register_peer_object(api, record, origin_hrn=None):
- pass