[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/component/browser/__init__.py
Death to ILocalUtility
Jim Fulton
jim at zope.com
Sun Apr 2 12:59:38 EDT 2006
Log message for revision 66310:
Death to ILocalUtility
Changed:
U Zope3/branches/jim-adapter/src/zope/app/component/browser/__init__.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/browser/__init__.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/browser/__init__.py 2006-04-02 16:59:35 UTC (rev 66309)
+++ Zope3/branches/jim-adapter/src/zope/app/component/browser/__init__.py 2006-04-02 16:59:37 UTC (rev 66310)
@@ -20,9 +20,6 @@
from zope.app.container.browser.adding import Adding
from zope.app.i18n import ZopeMessageFactory as _
from zope.app.container.interfaces import INameChooser
-from zope.app.component.interfaces.registration import ActiveStatus
-from zope.app.component.interfaces.registration import InactiveStatus
-from zope.app.component.interfaces import ILocalUtility
from zope.app.publisher.browser import BrowserView
from zope.app.component.interfaces import ISite
from zope.app.component.site import LocalSiteManager
@@ -102,14 +99,6 @@
menu_id = None
title = _("Add Utility")
- _addFilterInterface = ILocalUtility
-
- def add(self, content):
- # Override so as to check the type of the new object.
- if not ILocalUtility.providedBy(content):
- raise TypeError("%s is not a local utility" % content)
- return super(UtilityAdding, self).add(content)
-
def nextURL(self):
v = zapi.queryMultiAdapter(
(self.added_object, self.request), name="addRegistration.html")
More information about the Zope3-Checkins
mailing list