[TIP] Twill: POST encoding error on submit?

Titus Brown titus at caltech.edu
Thu Apr 3 17:32:31 PDT 2008


On Thu, Apr 03, 2008 at 06:13:07PM -0500, Tim Ottinger wrote:
-> Titus Brown wrote:
-> >On Thu, Apr 03, 2008 at 01:26:03PM -0500, Tim Ottinger wrote:
-> >-> I just started playing with Twill, and I think it's pretty cool.
-> >-> [...] got a baffling
-> >-> exception on 'submit()' .  The exception is:
-> >->     ValueError: unknown POST form encoding type ''
-> >
-> >
-> >Huh, never seen that one.  What's the enctype on the form?
-> >  
-> Ummm....
-> 
-> <blushes deeply>
-> <files bug report on site owner's website>

:)

It might be possible to "fix" that with an internal twill command. See
the 'formaction' function for an example; it modifies the form 'action'.

cheers,
--titus



More information about the testing-in-python mailing list