[Checkins] SVN: zope.app.appsetup/trunk/ Fixed a ``DeprecationWarning`` introduced in 3.10.0.
Michael Howitz
mh at gocept.com
Tue Mar 31 14:14:13 EDT 2009
Log message for revision 98705:
Fixed a ``DeprecationWarning`` introduced in 3.10.0.
Changed:
U zope.app.appsetup/trunk/CHANGES.txt
U zope.app.appsetup/trunk/src/zope/app/appsetup/bootstrap.py
-=-
Modified: zope.app.appsetup/trunk/CHANGES.txt
===================================================================
--- zope.app.appsetup/trunk/CHANGES.txt 2009-03-31 18:11:37 UTC (rev 98704)
+++ zope.app.appsetup/trunk/CHANGES.txt 2009-03-31 18:14:12 UTC (rev 98705)
@@ -5,7 +5,7 @@
Version 3.10.1 (unreleased)
---------------------------
-- ...
+- Fixed a ``DeprecationWarning`` introduced in 3.10.0.
Version 3.10.0 (2009-03-19)
@@ -14,7 +14,7 @@
- Finally deprecate the "asObject" argument of helper functions in the
``zope.app.appsetup.bootstrap`` module. If your code uses any of these
functions, please remove the "asObject=True" argument passing anywhere,
- because the support for that argument will be dropped soon.
+ because the support for that argument will be dropped soon.
- Move session utility bootstrapping logic from ``zope.session`` into this
package. This removes a dependency from zope.session to this package.
Modified: zope.app.appsetup/trunk/src/zope/app/appsetup/bootstrap.py
===================================================================
--- zope.app.appsetup/trunk/src/zope/app/appsetup/bootstrap.py 2009-03-31 18:11:37 UTC (rev 98704)
+++ zope.app.appsetup/trunk/src/zope/app/appsetup/bootstrap.py 2009-03-31 18:14:12 UTC (rev 98705)
@@ -93,8 +93,7 @@
warnings.warn("asObject argument is deprecated and will be "
"removed in Zope 3.6", DeprecationWarning, 2)
- utility = addUtility(root_folder, utility_type, utility_factory, True,
- **kw)
+ utility = addUtility(root_folder, utility_type, utility_factory, **kw)
root_folder.getSiteManager().registerUtility(utility, interface, name)
return utility
More information about the Checkins
mailing list