git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more casting for SFAv1 rspecs
[sfa.git]
/
sfa
/
rspecs
/
elements
/
versions
/
sfav1PLTag.py
diff --git
a/sfa/rspecs/elements/versions/sfav1PLTag.py
b/sfa/rspecs/elements/versions/sfav1PLTag.py
index
8e04d51
..
b523124
100644
(file)
--- a/
sfa/rspecs/elements/versions/sfav1PLTag.py
+++ b/
sfa/rspecs/elements/versions/sfav1PLTag.py
@@
-3,10
+3,10
@@
from sfa.rspecs.elements.pltag import PLTag
class SFAv1PLTag:
@staticmethod
class SFAv1PLTag:
@staticmethod
- def add_pl_tag
s(xml, pl_tags
):
+ def add_pl_tag
(xml, name, value
):
for pl_tag in pl_tags:
for pl_tag in pl_tags:
- pl_tag_elem = xml.add_element(
pl_tag['tagname']
)
- pl_tag_elem.set_text(
pl_tag['value']
)
+ pl_tag_elem = xml.add_element(
name
)
+ pl_tag_elem.set_text(
value
)
@staticmethod
def get_pl_tags(xml, ignore=[]):
@staticmethod
def get_pl_tags(xml, ignore=[]):
@@
-14,6
+14,6
@@
class SFAv1PLTag:
for elem in xml.iterchildren():
if elem.tag not in ignore:
pl_tag = PLTag({'tagname': elem.tag, 'value': elem.text})
for elem in xml.iterchildren():
if elem.tag not in ignore:
pl_tag = PLTag({'tagname': elem.tag, 'value': elem.text})
- pl_tags.append(
pl_tag
)
+ pl_tags.append(
dict(pl_tag)
)
return pl_tags
return pl_tags