Changeset 3324

Show
Ignore:
Timestamp:
05/11/08 23:43:09 (2 months ago)
Author:
travis
Message:

(travis) added choices parameter to create_node

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opus_gui/config/xmlmodelview/opusdatamodel.py

    r3321 r3324  
    447447    #                self.stripAttribute(attribute,child,recursive) 
    448448 
    449     def create_node(self, document, name, type, value): 
     449    def create_node(self, document, name, type, value, choices = None): 
    450450        newNode = document.createElement(QString(name)) 
    451451        newNode.setAttribute(QString("type"),QString(type)) 
    452452        newText = document.createTextNode(QString(value)) 
    453453        newNode.appendChild(newText) 
     454         
     455        if choices is not None: 
     456            newNode.setAttribute(QString('choices'), QString(choices)) 
    454457        return newNode 
    455458