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:
971a191
)
filter result of resolve() if type if specified in urn
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 24 Jan 2011 22:05:10 +0000
(17:05 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 24 Jan 2011 22:05:10 +0000
(17:05 -0500)
sfa/managers/registry_manager_pl.py
patch
|
blob
|
history
diff --git
a/sfa/managers/registry_manager_pl.py
b/sfa/managers/registry_manager_pl.py
index
4bef95d
..
d0998dd
100644
(file)
--- a/
sfa/managers/registry_manager_pl.py
+++ b/
sfa/managers/registry_manager_pl.py
@@
-89,6
+89,8
@@
def resolve(api, xrns, type=None, full=True):
# load all know registry names into a prefix tree and attempt to find
# the longest matching prefix
if not isinstance(xrns, types.ListType):
+ if not type:
+ type = Xrn(xrns).get_type()
xrns = [xrns]
hrns = [urn_to_hrn(xrn)[0] for xrn in xrns]
# create a dict whre key is an registry hrn and its value is a