Changeset 7886:abe9aea7342e in orange


Ignore:
Timestamp:
05/03/11 16:59:42 (3 years ago)
Author:
matija <matija.polajnar@…>
Branch:
default
Convert:
5f5c064ea536ed84f2d531614ce9122df7782712
Message:

fileutil: bugfix some refactoring leftovers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/fileutil.py

    r7831 r7886  
    1616 
    1717def xml_set(parent, node_name, value): 
    18     child = getElementNonRecursive(parent, node_name) 
     18    child = get_element_nonrecursive(parent, node_name) 
    1919    if not child: 
    2020        if value: 
     
    3232def xml_text_of(node, parent=None, multiline=False): 
    3333    if node.__class__ is str: 
    34         node = getElementNonRecursive(parent, node) 
     34        node = get_element_nonrecursive(parent, node) 
    3535    t = "" 
    3636    if node==None: 
     
    5050def get_element_nonrecursive(parent, elementname, create=False): 
    5151    for node in [n for n in parent.childNodes if n.nodeType==n.ELEMENT_NODE]: 
    52         if node.tagName == elementName: 
     52        if node.tagName == elementname: 
    5353            return node 
    5454    if create: 
    55         node = xml.dom.minidom.Element(elementName) 
     55        node = xml.dom.minidom.Element(elementname) 
    5656        parent.appendChild(node) 
    5757        return node 
Note: See TracChangeset for help on using the changeset viewer.