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:
b76ed93
)
return only the rspec for the slice
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 21 Apr 2010 01:20:41 +0000
(
01:20
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 21 Apr 2010 01:20:41 +0000
(
01:20
+0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
94f6e04
..
b3e0d05
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-509,8
+509,9
@@
class Network:
with element:
if self.slice:
self.slice.toxml(xml)
- for site in self.getSites():
- site.toxml(xml)
+ else:
+ for site in self.getSites():
+ site.toxml(xml)
header = '<?xml version="1.0"?>\n'
return header + str(xml)