X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fxrn.py;h=1f50628907a1098ac145ae5d10a4aab1850e07d1;hb=7352683511ceb5d31addd1dbe27b076f1b48a98d;hp=6a2f36e0eccf40d5edf61c69d879bd262715a561;hpb=0e88fcdd561d1d3f09e59e71e7dea82f8a8d4b66;p=sfa.git diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 6a2f36e0..1f506289 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):]