X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fnamespace.py;h=961b3b36d738173ee4f76684db51c0eb27a33d80;hb=267c154e1ee62d8c5ac903dda13da6a2c7dc16ad;hp=3ed03ab873715fbc11e7be8373eea029a1e35119;hpb=f4e2470e55558c5355696622be507d3f6b624c21;p=sfa.git diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index 3ed03ab8..961b3b36 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -1,5 +1,21 @@ -### $Id$ -### $URL$ +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# +# +# WARNING - This file should be soon deprecated in favor of sfa.util.xrn +# import re from sfa.util.faults import * URN_PREFIX = "urn:publicid:IDN" @@ -94,7 +110,7 @@ def urn_to_hrn(urn): # Remove the authority name (e.g. '.sa') if type == 'authority': - urn_parts = hrn_parts[:-1] + urn_parts = urn_parts[:-1] # convert hrn_parts (list) into hrn (str) by doing the following # 1. remove blank elements