Changeset 447 for trunk/packages/sipb-xen-www/code/templates/functions.tmpl
- Timestamp:
- Apr 22, 2008, 1:37:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/templates/functions.tmpl
r443 r447 1 #filter WebSafe 1 2 #def databaseList($lst, $default, $onchange, $name, $id, $valueattr, $descattr) 2 3 <select name="$name" id="$id"#slurp … … 19 20 20 21 #def cdromList($default="", $onchange=None) 22 #filter None 21 23 $databaseList(sorted($sipb_xen_database.CDROM.select(), key=lambda x: x.description), 22 24 default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description') 25 #end filter 23 26 #end def 24 27 25 28 #def autoList($default="", $onchange=None) 29 #filter None 26 30 $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.description), 27 31 default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description') 28 # # $databaseList(autos, default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')32 #end filter 29 33 #end def 30 34 … … 54 58 #end if 55 59 #end def 56 60 #filter None 57 61 $full_body 62 #end filter 63 #end filter
Note: See TracChangeset
for help on using the changeset viewer.