[twill] Form action value accessible

Titus Brown titus at caltech.edu
Sun Nov 27 17:21:44 PST 2005


added (but not tested much ;)

On Tue, Nov 22, 2005 at 07:29:08PM +0530, sureshvv wrote:
-> Titus Brown wrote:
-> > -> 
-> > -> I thought I would basically follow your formvalue pattern, i.e.
-> > -> there would be a "formaction" command with a "fa" alias.
-> > -> I would also tweak utils.print_form to display the current
-> > -> form action.  (I'll do this probably tomorrow as I've got
-> > -> to get *SOME* sleep ;-)
-> > 
-> 
-> 
-> 1. Edit commands.py
-> 2. Add "formaction" and "fa" to command list on top
-> 3. Add following after formclear
-> 
-> ---------------------------------------
-> 
-> def formaction(formname, action):
->      """
->      >> formaction <formname> <action_url>
-> 
->      Sets action parameter on form to action_url
->      """
->      form = browser.get_form(formname)
->      form.action = action
-> 
-> fa = formaction
-> 
-> -----------------------------------------
-> 
-> 
-> _______________________________________________
-> twill mailing list
-> twill at lists.idyll.org
-> http://lists.idyll.org/listinfo/twill
-> 



More information about the twill mailing list