[twill] Problem with multiple forms
Samuel Iseli - Vertec AG
samuel.iseli at vertec.ch
Fri Mar 16 01:11:50 PDT 2007
Hi folks
I can't get twill to work with multiple forms on a page.
submit gives an error although I previously selected a form using formvalue.
With only 1 form on a page, it works perfectly.
I'm using twill 0.9b1, Python 2.3.5 on Window XP.
what I did:
>>> fv 3 pres_von_new 8:00
>>> fv 3 pres_bis_new 11
>>> submit
ERROR: more than one form; you must select one (use 'fv') before submitting
here's my forms list:
>> showforms
Form #1
## ## __Name__________________ __Type___ __ID________
__Value__________________
1 fromdate_prev button (None) None
2 fromdate text (None) 16.03.2007
3 fromdate_next button (None) None
4 tilldate_prev button (None) None
5 tilldate text (None) 16.03.2007
6 tilldate_next button (None) None
Form name=frm_presence_edit (#2)
## ## __Name__________________ __Type___ __ID________
__Value__________________
1 curr_datum hidden (None) 2007-03-16
2 1 presence_save submit (None) Speichern
3 2 presence_delete submit (None) L÷schen
Form name=frm_presence_new (#3)
## ## __Name__________________ __Type___ __ID________
__Value__________________
1 curr_datum hidden (None) 2007-03-16
2 pres_von_new text (None)
3 pres_bis_new text (None)
4 pres_text_new text (None)
5 1 presence_add submit (None) Neu
Form name=frm_service_new (#4)
## ## __Name__________________ __Type___ __ID________
__Value__________________
1 curr_datum hidden (None) 2007-03-16
2 inp_date text (None) 16.03.2007
3 inp_project text (None)
4 inp_phase text (None)
5 inp_type text (None)
6 inp_text text (None)
7 inp_minutes text (None)
8 1 submitButton image (None) update
current page: http://localhost:8095/service_list/
Cheers
Samuel
More information about the twill
mailing list