#filter WebSafe #def databaseList($lst, $default, $onchange, $name, $id, $valueattr, $descattr) #end def #def cdromList($default="", $onchange=None) #filter None $databaseList(sorted($sipb_xen_database.CDROM.select(), key=lambda x: x.description), default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description') #end filter #end def #def autoList($default="", $onchange=None) #filter None $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.description), default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description') #end filter #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