Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31162
Modified Files:
fxdparser.py
Log Message:
small fix with default arguments
Index: fxdparser.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fxdparser.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** fxdparser.py 1 Nov 2004 20:12:11 -0000 1.20
--- fxdparser.py 7 Nov 2004 16:40:46 -0000 1.21
***************
*** 141,145 ****
for (ns, name), value in elem.attrs.items():
f.write(u' ' + Unicode(name) + u'="' + Unicode(value) + '"')
! if elem.children or elem.first_cdata:
if elem.first_cdata == None:
f.write('>\n ')
--- 141,145 ----
for (ns, name), value in elem.attrs.items():
f.write(u' ' + Unicode(name) + u'="' + Unicode(value) + '"')
! if elem.children != [] or elem.first_cdata != None:
if elem.first_cdata == None:
f.write('>\n ')
***************
*** 361,364 ****
--- 361,369 ----
nodes = []
+ # create a new dict to avoid messing up with default parameter
+ # for items
+ if not object.info:
+ object.info = {}
+
for node in nodes:
for child in node.children:
***************
*** 375,377 ****
--- 380,384 ----
add an element to the tree
"""
+ if not isinstance(node, XMLnode):
+ node = node.__fxd__(self)
self.tree.add(node, parent, pos)
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog