[CMF-checkins] CVS: Products/CMFCore/interfaces -
IOpaqueItems.py:1.4
Grégoire Weber
zope.org at incept.ch
Mon Jul 19 08:02:32 EDT 2004
Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv32046/interfaces
Modified Files:
IOpaqueItems.py
Log Message:
- changed name of 'ICallableOpaqueItemWithHooks' to 'ICallableOpaqueItem'.
- added 'ICallableOpaqueItemEvents'.
- changed implementation and test accordingly.
=== Products/CMFCore/interfaces/IOpaqueItems.py 1.3 => 1.4 ===
--- Products/CMFCore/interfaces/IOpaqueItems.py:1.3 Wed Jun 30 11:27:25 2004
+++ Products/CMFCore/interfaces/IOpaqueItems.py Mon Jul 19 08:02:02 2004
@@ -19,8 +19,8 @@
from Interface import Interface
-class ICallableOpaqueItemWithHooks(Interface):
- """Interface for callable opaque items with manage_* hooks.
+class ICallableOpaqueItem(Interface):
+ """Interface for callable opaque items.
Opaque items are subelements that are contained using something that
is not an ObjectManager.
@@ -36,4 +36,19 @@
def getId():
"""Returns the name of the attribute the opaque item is assigend to.
+ """
+
+class ICallableOpaqueItemEvents(Interface):
+ """CMF specific events upon copying, renaming and deletion.
+ """
+ def manage_afterClone(item):
+ """After clone event hook.
+ """
+
+ def manage_beforeDelete(item, container):
+ """Before delete event hook.
+ """
+
+ def manage_afterAdd(self, item, container):
+ """After add event hook.
"""
More information about the CMF-checkins
mailing list