WebHelpers 1.2 has been released. This version uses MarkupSafe, which
is an implementation of ``literal`` and ``escape`` that's more secure
and has a C speedup for escape. Pylons and Mako have also switched to
MarkupSafe, so if you're on Pylons 1.0.1 you already have it.

The other changes are all minor:

- webhelpers.html.tags.text(): add ``type`` argument for new HTML 5 input types.

- webhelpers.html.tags.form(): suppress the "id" attribute on hidden
fields generated by this helper. This prevents ID clashes if the page
contains multiple forms.

- webhelpers.html.tools.button_to(): preserve case of "method" arg for
XHTML compatibility.

- webhelpers.text.urlify(): urlencode result in case it contains
special chars like "?".

- webhelpers.util.update_params(): bugfix re existing query params.
Also, support multiple values per param.

There was an unannounced release of WebHelpers 1.1 which contained a
licensing fix for Fedora. The ``_jsmin`` module was removed because
Fedora's lawyers consider it non-free, and thus ineligible for their
distribution. The minify helper was changed to use the external
``jsmin`` package if it's installed, otherwise to leave Javascript
unchanged. This does not affect CSS minification. (The ``jsmin``
package contains a newer version of the same code, and has the same
non-free license. The license contains a clause, "The Software shall
be
used for Good, not Evil." This is considered a restriction on use, and
could lead to trivial harassment because there's no legal definition
of Good and Evil. Both Fedora and I asked the author to change the
license but he refused. Debian and other distros have a similar policy
as Fedora, so they could all have ended up modifying or dropping
WebHelpers if the module weren't deleted upstream.)

The new version is available in PyPI, and the docs will be updated as
soon as Ben has a chance to update webhelpers.groovie.org. A temporary
copy of the docs s at
http://sluggo.scrapping.cc/tmp/webhelpers/index.html




-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to