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 (from parent 1:
fb97131
)
in urn_to_sliver_id(), convert all values to string before calling str.join()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 18:37:43 +0000
(14:37 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 18:37:43 +0000
(14:37 -0400)
sfa/util/xrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/xrn.py
b/sfa/util/xrn.py
index
4709b49
..
3dc87b6
100644
(file)
--- 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):
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(
[urn, slice_id, node_id, index]
)
+ return ":".join(
map(str, [urn, slice_id, node_id, index])
)
class Xrn:
class Xrn: