From 979cc484971c9df31e960dacc94a00cbb9fd58a6 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 24 Jan 2011 17:05:10 -0500 Subject: [PATCH] filter result of resolve() if type if specified in urn --- sfa/managers/registry_manager_pl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sfa/managers/registry_manager_pl.py b/sfa/managers/registry_manager_pl.py index 4bef95db..d0998ddc 100644 --- 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 -- 2.43.0