From: Tony Mack Date: Mon, 17 Feb 2014 16:36:46 +0000 (-0500) Subject: handle escape chars in hrn X-Git-Tag: sfa-3.1-2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=695cfb0382996b88c634a3803666bec7477bcee2;p=sfa.git handle escape chars in hrn --- diff --git a/sfa/trust/hierarchy.py b/sfa/trust/hierarchy.py index 8c2daf21..89b680c8 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(".", "/"))