From: Josh Karlin Date: Thu, 15 Jul 2010 19:52:54 +0000 (+0000) Subject: updated urn_to_hrn to be compliant with standard X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=93c7264013d3bef712023ae955d50b18cdbeb50b;p=sfa.git updated urn_to_hrn to be compliant with standard --- diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index c771d717..d036f064 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -66,8 +66,7 @@ def urn_to_hrn(urn): name = urn[len(URN_PREFIX):] hrn_parts = name.split("+") - # type is always the second to last element in the list - type = hrn_parts.pop(-2) + type = hrn_parts.pop(2) # convert hrn_parts (list) into hrn (str) by doing the following # remove blank elements