[twill] select form fields - AttributeError: 'int' object has no attribute 'startswith'
Norman Khine
norman at khine.net
Mon May 3 07:18:56 PDT 2010
hello,
how do i insert select form fields:
here is my form:
http://paste.lisp.org/display/98712
this works for me
fv("1", "firstName", "Test")
fv("1", "lastName", "Tester")
fv("1", "mail", "twill at domain.com")
fv("1", "confirmMail", "twill at domain.com")
submit()
code("200")
but when i add
fv("1", "birthday[month]", 3)
i get this error
==> at http://aqoon.local/fr/registerUser
Traceback (most recent call last):
File "test.py", line 82, in <module>
fv("1", "birthday[month]", 3)
File "/Users/khinester/lib/python2.6/site-packages/twill-0.9-py2.6.egg/twill/commands.py",
line 450, in formvalue
set_form_control_value(control, value)
File "/Users/khinester/lib/python2.6/site-packages/twill-0.9-py2.6.egg/twill/utils.py",
line 172, in set_form_control_value
if val.startswith('-'):
AttributeError: 'int' object has no attribute 'startswith'
thanks
--
¿noʎ uɐɔ uʍop ǝpısdn ǝʇıɹʍ uɐɔ ı - %>>> "".join( [
{'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in
",adym,*)&uzq^zqf" ] )
More information about the twill
mailing list