<%page args="module"/> <%def name="id()">${module['id']}_select <%def name="selected(option)"> <% default = module['params'].get('maxLines', -1) #overwrite the deprecated param with the new param if its present. if ("default" in module['params']) : default = module['params'].get('default', -1) %> % if int(default) == int(option['value']): selected="selected" % endif