X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fxrn.py;h=f48a37732a713796ef316d8997ea7199d77aa741;hb=b7d6a80faf23cb019c74e65c2264e215446f84a3;hp=1f50628907a1098ac145ae5d10a4aab1850e07d1;hpb=57b6a99255d4a88be9c0f910f8524677e34ff4bc;p=sfa.git diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 1f506289..f48a3773 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -33,7 +33,7 @@ def hrn_to_urn(hrn,type): return Xrn(hrn, type=type).urn def hrn_authfor_hrn(parenthrn, hrn): return Xrn.hrn_is_auth_for_hrn(parenthrn, hrn) def urn_to_sliver_id(urn, slice_id, node_id, index=0): - return ":".join(map(str, [urn, slice_id, node_id, index])) + return Xrn(urn).get_sliver_id(slice_id, node_id, index) class Xrn: @@ -130,6 +130,13 @@ class Xrn: # if not type: # debug_logger.debug("type-less Xrn's are not safe") + def __repr__ (self): + result="