[Checkins] SVN: zope.component/trunk/ Add convenience contextmanager for setting the site

Michael Howitz mh at gocept.com
Wed Nov 16 09:13:56 UTC 2011


Am 16.11.2011 um 09:43 schrieb Wolfgang Schnerring:
> Log message for revision 123355:
>  Add convenience contextmanager for setting the site
[...]
> +- Add convenience function zope.component.hooks.site (a contextmanager),
> +  so one can write ``with site(foo): ...``.


Nice improvement but it is not compatible with Python 2.5.
The change log should tell this or maybe the change should be optional if we still want to support Python 2.5.


Yours sincerely,
-- 
Michael Howitz · mh at gocept.com · software developer
gocept gmbh & co. kg · Forsterstraße 29 · 06112 Halle (Saale) · Germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the checkins mailing list