Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv4890

Modified Files:
        fxdparser.py 
Log Message:
add new helper function

Index: fxdparser.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fxdparser.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** fxdparser.py        10 Jan 2004 13:17:43 -0000      1.7
--- fxdparser.py        14 Jan 2004 18:42:47 -0000      1.8
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.8  2004/01/14 18:42:47  dischi
+ # add new helper function
+ #
  # Revision 1.7  2004/01/10 13:17:43  dischi
  # o always check if fxd file contains <skin>
***************
*** 269,272 ****
--- 272,287 ----
  
  
+     def get_or_create_child(self, node, name):
+         """
+         return the first child with name or create it (and add it)
+         """
+         for child in node.children:
+             if child.name == name:
+                 return child
+         child = XMLnode(name)
+         self.add(child, node)
+         return child
+     
+         
      def childcontent(self, node, name):
          """




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to