[twill] forms

Norman Khine norman at khine.net
Fri May 21 08:54:11 PDT 2010


hello,
is there a direct way to check how many forms the page returned has?
from the docs:
showforms -- show all of the forms on the current page. When called
from Python, this function returns a list of the forms.

but if i do
b = twill.get_browser()
forms = b.showforms()
print len(forms)

i get
TypeError: object of type 'NoneType' has no len()

thanks
-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )



More information about the twill mailing list