Author: duncan
Date: Sat Jun 2 10:17:30 2007
New Revision: 9631
Modified:
branches/rel-1/freevo/src/util/fxdparser.py
Log:
A fix when the attribute list is None
Modified: branches/rel-1/freevo/src/util/fxdparser.py
==============================================================================
--- branches/rel-1/freevo/src/util/fxdparser.py (original)
+++ branches/rel-1/freevo/src/util/fxdparser.py Sat Jun 2 10:17:30 2007
@@ -277,7 +277,7 @@
def getattr(self, node, name, default=''):
"""
- return the attribute of the node or the 'default' if the atrribute is
not
+ return the attribute of the node or the 'default' if the attribute is
not
set. If 'node' is 'None', it return the user defined data in the fxd
object.
"""
@@ -314,8 +314,10 @@
for the fxd parser.
"""
if node:
- node.attr_list.append(((None, name), value))
- #node.attrs[('',name)] = value
+ try:
+ node.attr_list.append(((None, name), value))
+ except AttributeError:
+ node.attrs[('',name)] = value
else:
self.user_data[name] = value
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog