Author: dmeyer
Date: Sat Apr 14 17:59:05 2007
New Revision: 9436
Modified:
trunk/core/src/xmlconfig.py
Log:
support extern node to add variables
Modified: trunk/core/src/xmlconfig.py
==============================================================================
--- trunk/core/src/xmlconfig.py (original)
+++ trunk/core/src/xmlconfig.py Sat Apr 14 17:59:05 2007
@@ -152,6 +152,16 @@
find_events(doc.firstChild)
out.write(']\n')
+ def find_extern(node):
+ for child in node.childNodes:
+ if child.nodeName == 'extern':
+ out.write('import %s\n' % child.getAttribute('module'))
+ out.write('config.add_variable(\'%s\', %s.config)\n\n' % \
+ (child.getAttribute('name'),
child.getAttribute('module')))
+ if child.nodeName == 'group':
+ find_extern(child)
+ find_extern(doc.firstChild)
+
def find_code(node):
for child in node.childNodes:
if child.nodeName == 'code':
-------------------------------------------------------------------------
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