[twill] error log issue
jeremiah.jester at panasonic.aero
Wed Oct 1 16:53:49 PDT 2008
I am logging my output and errors in a particular file for twill.
However, when i run the below python code, which hits index.php pages
located in several directories it spits the error code to the screen
rather than logging to the error log. I've verified that the logs are
being created successfully, so this is not the issue.
Any ideas why this is?
print "Checking base links..."
host="https://" + subdomain + "url.com"
urls=['dir1', 'dir2', 'dir3']
for x in urls:
link=host + x + "/index.php"
print " " + link
error i'm getting:
Traceback (most recent call last):
File "dart.py", line 143, in <module>
File "dart.py", line 99, in check_base_links
File "/var/lib/python-support/python2.5/twill/commands.py", line 129,
twill.errors.TwillAssertionError: code is 404 != 200
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 twill