Skip to content

Commit

Permalink
Release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hemberger committed Aug 27, 2019
1 parent 3731739 commit c767683
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
39 changes: 30 additions & 9 deletions docs/ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,52 @@
Release Notes
=============

Version 1.0 (in development)
============================
Version 0.12
============

Main changes:
-------------

* Added ability to submit a form without updating `StatefulBrowser` internal
state. This means you get a response from the form submission, but your
browser "stays" on the same page. Useful for handling forms that result in
a download of a file or opening a new window.
* Changes in official python version support: added 3.7 and dropped 3.4.

* Added ability to submit a form without updating ``StatefulBrowser`` internal
state: ``submit_selected(..., update_state=False)``. This means you get a
response from the form submission, but your browser stays on the same page.
Useful for handling forms that result in a file download or open a new tab.

Bug fixes
---------

* Improve handling of form enctype to behave like a real browser.
[`#242 <https://github.com/MechanicalSoup/MechanicalSoup/issues/242>`__]

* HTML ``type`` attributes are no longer required to be lowercase.
[`#245 <https://github.com/MechanicalSoup/MechanicalSoup/issues/245>`__]

* Form controls with the ``disabled`` attribute will no longer be submitted
to improve compliance with the HTML standard. If you were relying on this
bug to submit disabled elements, you can still achieve this by deleting the
``disabled`` attribute from the element in the :class:`~mechanicalsoup.Form`
object directly.
[`#248 <https://github.com/MechanicalSoup/MechanicalSoup/issues/248>`__]
* Upon submitting a form containing a file input field without uploading one,
an empty filename & content will be sent in compliance with regular web
browser behavior.

* When a form containing a file input field is submitted without choosing a
file, an empty filename & content will be sent just like in a real browser.
[`#250 <https://github.com/MechanicalSoup/MechanicalSoup/issues/250>`__]

* ``<option>`` tags without a ``value`` attribute will now use their text as
the value.
[`#252 <https://github.com/MechanicalSoup/MechanicalSoup/pull/252>`__]

* The optional ``url_regex`` argument to ``follow_link`` and ``download_link``
was fixed so that it is no longer ignored.
[`#256 <https://github.com/MechanicalSoup/MechanicalSoup/pull/256>`__]

* Allow duplicate submit elements instead of raising a LinkNotFoundError.
[`#264 <https://github.com/MechanicalSoup/MechanicalSoup/issues/264>`__]

Our thanks to the many new contributors in this release!

Version 0.11
============

Expand Down
2 changes: 1 addition & 1 deletion mechanicalsoup/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__description__ = 'A Python library for automating interaction with websites'
__url__ = 'https://mechanicalsoup.readthedocs.io/'
__github_url__ = 'https://github.com/MechanicalSoup/MechanicalSoup'
__version__ = '1.0.0-dev'
__version__ = '0.12.0'
__license__ = 'MIT'
__github_assets_absoluteURL__ = """\
https://raw.githubusercontent.com/MechanicalSoup/MechanicalSoup/master"""

0 comments on commit c767683

Please sign in to comment.