X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fxrn.py;h=fb9e864fc6bb61b16aff7e53f17f4da4465f9cca;hb=862dfa7f7b8cce8c17e80c42aedd8d500ea86cb6;hp=6a2f36e0eccf40d5edf61c69d879bd262715a561;hpb=0e88fcdd561d1d3f09e59e71e7dea82f8a8d4b66;p=sfa.git diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 6a2f36e0..fb9e864f 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -23,7 +23,7 @@ import re -from sfa.util.faults import * +from sfa.util.faults import SfaAPIError # for convenience and smoother translation - we should get rid of these functions eventually def get_leaf(hrn): return Xrn(hrn).get_leaf() @@ -98,7 +98,7 @@ class Xrn: @staticmethod def urn_full (urn): if urn.startswith(Xrn.URN_PREFIX): return urn - else: return Xrn.URN_PREFIX+URN + else: return Xrn.URN_PREFIX+urn @staticmethod def urn_meaningful (urn): if urn.startswith(Xrn.URN_PREFIX): return urn[len(Xrn.URN_PREFIX):] @@ -130,6 +130,13 @@ class Xrn: # if not type: # debug_logger.debug("type-less Xrn's are not safe") + def __repr__ (self): + result="