From: Tony Mack Date: Mon, 17 Feb 2014 16:35:28 +0000 (-0500) Subject: handle escape chars in hrn X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=da720c00aea567ab319bc4b10c92cfb2a93e2a2b handle escape chars in hrn --- diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 8c2daf21..93de94bf 100644 --- a/sfa/trust/hierarchy.py +++ b/sfa/trust/hierarchy.py @@ -111,7 +111,11 @@ class Hierarchy: def get_auth_filenames(self, xrn): hrn, type = urn_to_hrn(xrn) - leaf = get_leaf(hrn) + if '\\' in hrn: + hrn = hrn.replace('\\', '' + leaf = hrn + else: + leaf = get_leaf(hrn) parent_hrn = get_authority(hrn) directory = os.path.join(self.basedir, hrn.replace(".", "/"))