<div class="gmail_quote">On Mon, May 3, 2010 at 9:18 AM, Norman Khine <span dir="ltr">&lt;<a href="mailto:norman@khine.net">norman@khine.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hello,<br>
how do i insert select form fields:<br>
<br>
here is my form:<br>
<br>
<a href="http://paste.lisp.org/display/98712" target="_blank">http://paste.lisp.org/display/98712</a><br>
<br>
this works for me<br>
<br>
fv(&quot;1&quot;, &quot;firstName&quot;, &quot;Test&quot;)<br>
fv(&quot;1&quot;, &quot;lastName&quot;, &quot;Tester&quot;)<br>
fv(&quot;1&quot;, &quot;mail&quot;, &quot;<a href="mailto:twill@domain.com">twill@domain.com</a>&quot;)<br>
fv(&quot;1&quot;, &quot;confirmMail&quot;, &quot;<a href="mailto:twill@domain.com">twill@domain.com</a>&quot;)<br>
<br>
submit()<br>
code(&quot;200&quot;)<br>
<br>
but when i add<br>
<br>
fv(&quot;1&quot;, &quot;birthday[month]&quot;, 3)<br>
<br>
i get this error<br>
<br>
==&gt; at <a href="http://aqoon.local/fr/registerUser" target="_blank">http://aqoon.local/fr/registerUser</a><br>
Traceback (most recent call last):<br>
  File &quot;test.py&quot;, line 82, in &lt;module&gt;<br>
    fv(&quot;1&quot;, &quot;birthday[month]&quot;, 3)<br>
  File &quot;/Users/khinester/lib/python2.6/site-packages/twill-0.9-py2.6.egg/twill/commands.py&quot;,<br>
line 450, in formvalue<br>
    set_form_control_value(control, value)<br>
  File &quot;/Users/khinester/lib/python2.6/site-packages/twill-0.9-py2.6.egg/twill/utils.py&quot;,<br>
line 172, in set_form_control_value<br>
    if val.startswith(&#39;-&#39;):<br>
AttributeError: &#39;int&#39; object has no attribute &#39;startswith&#39;<br>
<br>
thanks<br>
<br>
--<br>
¿noʎ uɐɔ uʍop ǝpısdn ǝʇıɹʍ uɐɔ ı - %&gt;&gt;&gt; &quot;&quot;.join( [<br>
{&#39;*&#39;:&#39;@&#39;,&#39;^&#39;:&#39;.&#39;}.get(c,None) or chr(97+(ord(c)-83)%26) for c in<br>
&quot;,adym,*)&amp;uzq^zqf&quot; ] )<br>
<br></blockquote><div><br></div><div>Try making the value a string instead of an int:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">fv(&quot;1&quot;, &quot;birthday[month]&quot;, &#39;3&#39;)</span> </div>
</div>