[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - interfaces.py:1.6
Albertas Agejevas
alga@codeworks.lt
Wed, 15 Jan 2003 10:15:50 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv18195/app/interfaces/services
Modified Files:
interfaces.py
Log Message:
Added adapterName to the AdapterConfiguration views.
Fixed a bug where manage_beforeDelete was not being called on
AdapterConfigurations.
=== Zope3/src/zope/app/interfaces/services/interfaces.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/interfaces/services/interfaces.py:1.5 Thu Jan 9 12:28:43 2003
+++ Zope3/src/zope/app/interfaces/services/interfaces.py Wed Jan 15 10:15:17 2003
@@ -22,6 +22,7 @@
from zope.interface import Interface
from zope.app.services.field import ComponentPath
from zope.component.interfaces import IPresentation
+from zope.app.interfaces.container import IDeleteNotifiable
class IAdapterConfigurationInfo(Interface):
@@ -39,13 +40,21 @@
required = True,
)
+ adapterName = TextLine(
+ title=u"The name of the adapter",
+ readonly=True,
+ required=False,
+ )
+
factoryName = BytesLine(
title=u"The dotted name of a factory for creating the adapter",
readonly = True,
required = True,
)
-class IAdapterConfiguration(IConfiguration, IAdapterConfigurationInfo):
+
+class IAdapterConfiguration(IConfiguration, IAdapterConfigurationInfo,
+ IDeleteNotifiable):
def getAdapter(object):
"""Return an adapter for the object