Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for disabled SubmitControl objects with no value #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 12, 2012

  1. Stop mechanize from crashing with an AttributeError when it selects a…

    … form with a SubmitControl that has no value and is also disabled.
    
    When mechanize encounters a SubmitControl with no value (such as an ImageControl) it attempts to set the value to a blank string. This fails if the control is disabled. This patch temporarily sets disabled to False in this situation and then immediately resets it to True after the blank string has been assigned to value.
    abielr committed Feb 12, 2012
    Configuration menu
    Copy the full SHA
    813ba36 View commit details
    Browse the repository at this point in the history