Changeset 2401 for package_branches/invirt-web/cherrypy/code/templates
- Timestamp:
- Aug 9, 2009, 6:45:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/templates/functions.mako
r2400 r2401 1 <%page expression_filter="h"/> 1 2 <%def name="databaseList(lst, default, onchange, name, id, valueattr, descattr)"> 2 3 <select name="${name}" id="${id}"\ … … 16 17 <%def name="cdromList(default='', onchange=None)"> 17 18 ${databaseList(sorted(database.CDROM.query(), key=lambda x: x.description), 18 default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description') }19 default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description')|n} 19 20 </%def> 20 21 21 22 <%def name="autoList(default='', onchange=None)"> 22 23 ${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description), 23 default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description') }24 default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')|n} 24 25 </%def> 25 26
Note: See TracChangeset
for help on using the changeset viewer.