[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - zapi.py:1.9
Jim Fulton
jim at zope.com
Sun Sep 21 13:32:27 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv14309/src/zope/app/interfaces
Modified Files:
zapi.py
Log Message:
Removed the context-wrapper support.
=== Zope3/src/zope/app/interfaces/zapi.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/interfaces/zapi.py:1.8 Thu Jun 26 22:50:11 2003
+++ Zope3/src/zope/app/interfaces/zapi.py Sun Sep 21 13:32:26 2003
@@ -16,16 +16,10 @@
$Id$
"""
from zope.component.interfaces import IComponentArchitecture
-from zope.app.interfaces.context import IContextWrapper
-from zope.context.interfaces import IWrapperIntrospection
-from zope.context.interfaces import IContextAwareDescriptorSupport
from zope.app.interfaces.traversing import ITraversalAPI
class IZAPI(
IComponentArchitecture,
- IContextWrapper,
- IWrapperIntrospection,
- IContextAwareDescriptorSupport,
ITraversalAPI,
):
"""Convenience API for use with Zope applications.
@@ -46,3 +40,21 @@
The given args will be converted to strings and displayed in
the message shown the user.
"""
+
+ def add(container, name, object):
+ """Add an object to a container
+
+ This helper function takes care of getting an adapter that
+ publishes necessary errors and calling necessary hooks.
+
+ """
+
+ def remove(container, name):
+ """Remove an object from a container
+
+ This helper function takes care of getting an adapter that
+ publishes necessary errors and calling necessary hooks.
+
+ """
+
+
More information about the Zope3-Checkins
mailing list