Changeset 2401


Ignore:
Timestamp:
Aug 9, 2009, 6:45:29 PM (15 years ago)
Author:
quentin
Message:

Properly HTML-escape functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/templates/functions.mako

    r2400 r2401  
     1<%page expression_filter="h"/>
    12<%def name="databaseList(lst, default, onchange, name, id, valueattr, descattr)">
    23<select name="${name}" id="${id}"\
     
    1617<%def name="cdromList(default='', onchange=None)">
    1718${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}
    1920</%def>
    2021
    2122<%def name="autoList(default='', onchange=None)">
    2223${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}
    2425</%def>
    2526
Note: See TracChangeset for help on using the changeset viewer.