Robert Thomas Davis
rdavisunr at yahoo.com
Wed Mar 17 11:20:57 EST 2004
Hello All I have the following template file (form.tmpl) <table border="0"> <caption><%=caption%></caption> <form method="post" name="<%= name %>" id="<%= name%>" action="<%= processor %>" > <% for field in form_control_fields: req.write('<tr>') req.write('<td>') req.write( str(field.vars['name'])) req.write('</td>') req.write('<td align="right">') req.write( str(field) ) req.write('</td>') req.write('</tr>') %> <% # end %> <tr> <td colspan="2" align="center"> <input type="submit" name="submit_btn" value="<%= submit_value %>" /> </td> </tr> </form> </table> I currently send this template all the variable you see above; my question is in regard to the <%=processor%> variable which is where I specify which function in my .py file should process the form. I would like to specify a funtion here that begins with a "_" so that it cannot be freely accessed. Is this possible? Am I going about it the right way, or does anyone have suggestions for improvment? Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20040317/4e56b4dd/attachment.html
|