WebHelpers 1.0b7 has several bugfixes in Paginate. The biggest one is
a URL generator chooser, needed because ``routes.url_for`` is not
supported by Pylons 1.x.  You can pass a custom generator callback to
the constructor, or let it default to ``pylons.url.current`` or
``routes.url_for`` (in that order). If none of these are available it
raises NotImplementedError.

PLEASE try it with your applications and see if it breaks anything.

Another patch allows paging any container object with .__iter__ and
.__len__ methods. This may allow it to work with a wider variety of
databases.

Page no longer allows extra positional args in the constructor. It
never used these so it shouldn't have accepted them. Another patch
imports "sqlalchemy.orm" explicitly if SQLAlchemy is found. Apparently
that avoids attribute errors on some systems.

The Flash helper has a new argument 'ignore_duplicate' to prevent
adding the same message multiple times. Also, if the new message has a
different category than the original, it changes the original category
in place. That may be useful to upgrade from a warning to an error,
for instance.

The Grid helpers have some updates by Ergo, mainly in the styling and
CSS classes.  Some CLASS NAMES are also changed.

Finally, there's a bugfix in the ``canada_provinces()`` helper.

WebHelpers is now in a soft feature freeze. Bugfixes will be done and
maybe some small changes, but I don't have time to make any of the big
enhancements suggested in the bugtracker. New large things can go
outside WebHelpers so I can concentrate more on Pylons development.

-- 
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