X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fnamespace.py;h=93186c969a927a769aab8dacf6fe729a57c36674;hb=eababa96fb603cdd552bc03091813544b099befd;hp=b920f00dcdea9298b53f704cefe66670b3b11525;hpb=47c8f4ead3bb58adabb9f4601acb4796a566187b;p=sfa.git diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index b920f00d..93186c96 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -85,7 +85,7 @@ def urn_to_hrn(urn): # 2. escape '.' # '.' exists in protogeni object names and are not delimiters # 3. replace ':' with '.' # ':' is the urn hierarchy delimiter # 4. join list elements using '.' - hrn = '.'.join([part.replace('.', '\.').replace(':', '.') for part in hrn_parts if part]) + hrn = '.'.join([part.replace('.', '\\.').replace(':', '.') for part in hrn_parts if part]) return str(hrn), str(type)