git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed7a92d
)
need to cast ids to string
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 7 Jul 2011 20:29:48 +0000
(16:29 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 7 Jul 2011 20:29:48 +0000
(16:29 -0400)
sfa/util/xrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/xrn.py
b/sfa/util/xrn.py
index
76c55be
..
31f77f2
100644
(file)
--- a/
sfa/util/xrn.py
+++ b/
sfa/util/xrn.py
@@
-9,7
+9,7
@@
def urn_to_hrn(urn): xrn=Xrn(urn); return (xrn.hrn, xrn.type)
def hrn_to_urn(hrn,type): return Xrn(hrn, type=type).urn
def urn_to_sliver_id(urn, slice_id, node_id, index=0):
def hrn_to_urn(hrn,type): return Xrn(hrn, type=type).urn
def urn_to_sliver_id(urn, slice_id, node_id, index=0):
- return ":".join([urn, s
lice_id, node_id, index
])
+ return ":".join([urn, s
tr(slice_id), str(node_id), str(index)
])
class Xrn:
class Xrn: