[Tutor] twill help
jeremiah
jeremiah.jester at panasonic.aero
Fri Sep 26 02:20:51 CEST 2008
Any python twill users on here?
When I login to a form login page through twill, my session vars and
cookies are set correctly. however, when i do this through a python
script (in attempt to automate the proccess) these same variables are
not saved and I cannot login. Do I need to pass them some how?
Here's what I'm doing...
>>twill-sh
>> extend_with filename
>>login someusername somepassword
>>show_cookies #coorect vars don't print
File...
#!/usr/bin/python
from twill.commands import *
def login(u, p):
go('https://dartdev.panasonic.aero/home/login.php')
fv(1, 'username', u)
fv(1, 'password', p)
submit
Thanks!
JJ
Disclaimer: The information contained in this transmission, including any
attachments, may contain confidential information of Panasonic Avionics
Corporation. This transmission is intended only for the use of the
addressee(s) listed above. Unauthorized review, dissemination or other use
of the information contained in this transmission is strictly prohibited.
If you have received this transmission in error or have reason to believe
you are not authorized to receive it, please notify the sender by return
email and promptly delete the transmission.
More information about the Tutor
mailing list