Webhelpers

Latest version: v1.3

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.3

------------------

* webhelpers.paginate:

- Revert Sprox patch (59) from 1.3b1; it makes SQLAlchemy inefficient (63).
The bug reporter's Sprox object seems to be unsliceable and therefore
incompatible with paginate. Changed error message to say this if the
slicing operation raises "TypeError: unhashable type".

1.3b1

------------------

* Documentation:

- Some ``webhelpers.misc`` helpers were undocumented.

- Spelling corrections throughout, done by Marius Gedminas.

* webhelpers.date:

- Adjust test in 'test_date.py' to account for leap years. (61, reported
by Andrey Rahmatullin / wrar)

* webhelpers.html.grid, webhelpers.pylonslib.grid:

- Add 'request' and 'url' args to support paged display.
(webhelpers.html.grid only)
- Deprecate webhelpers.pylonslib.grid. It may be removed in a future
version.

* webhelpers.paginate:

- Add URL generator classes for new frameworks like Pyramid.
- In the Pylons backward compatibility code, support page parameter in the
route path (e.g., "/help/page5") when using Routes explicit mode without a
URL generator.

* setup.py:

- Fix typo in test requirements. (60, Andrey Rahmatullin/wrar)

1.2

----------------

* WebHelpers now depends on MarkupSafe. ``literal`` and ``escape`` now use it.

* webhelpers.html.builder:

- ``literal`` and ``escape`` now use MarkupSafe, which has a C speedup for
escaping, escapes single-quotes for security, and adds new methods to
``literal``. Compatibility should not be a problem; but see the docs if
you encounter any edge cases.

* webhelpers.html.tags:

- For new HTML 5 input fields, the ``text`` helper has a "type" argument.

- Don't put an "id" attribute on a hidden fields generated by the ``form()``
helper, including the magic ``_method`` field. The IDs will clash if there
are multiple forms on the page.

* webhelpers.html.tools:

- Preserve case of "method" arg in ``button_to()`` for XHTML compatibility.
Patch by transducer.

* webhelpers.text:

- Urlencode ``urlify`` return value in case it contains special
characters like "?". Reported by mcd34gmail.com.

* webhelpers.util:

- Fix bug in ``update_params`` in handling existing query strings. Support
multiple values per parameter.

1.1

----------------

* webhelpers.paginate:

- Remove stray Routes import. (Other conditional Routes imports remain for
backward compatibility; see module docstring.)

* webhelpers.pylonslib.minify:

- Remove _jsmin module due to licensing issues. Details are in
webhelpers/pylonslib/_jsmin.py . You can install the "jsmin" package in
PyPI (which has the same license), and the helper will use it. If that
package is installed, the helper will use it. Otherwise the helper will
emit a warning and leave the Javascript unchanged. CSS minification is not
affected.

1.0

-----------------

* webhelpers.html.tools:

- Bugfix re URLs surrounded by []. Bug 32.

1.0rc1

-------------------

* webhelpers.html.tags:

- Change 'id' argument to all form field helpers. The default value is now
NotGiven rather than None. NotGiven tells WebHelpers to create an ID
attribute based on the field name (formerly None did this). None suppresses
the ID attribute entirely (formerly "" did this, and still does for backward
compatibility). This behavior of None is consistent with other parts of
WebHelpers.

* webhelpers.misc:

- New ``format_exception`` helper to display an exception as Python would but
without the traceback.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.