#def cdromList($cdroms, $default="") #end def #def vmTypeList($default=None) #for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description) #end for #end def #def addError(txt) #if $varExists('txt') #set global $error_text = $error_text + '----\n' + $txt #else #set global $error_text = $txt #end if #end def #def errorRow($value, $err) #if $err and $err.err_field == $value