[z3-checkins] r6873 - z3/sqlos/trunk/event

dreamcatcher at codespeak.net dreamcatcher at codespeak.net
Fri Oct 8 18:57:25 MEST 2004


Author: dreamcatcher
Date: Fri Oct  8 18:57:24 2004
New Revision: 6873

Added:
   z3/sqlos/trunk/event/interfaces.py   (contents, props changed)
Log:
Forgot to add this file. Argh!


Added: z3/sqlos/trunk/event/interfaces.py
==============================================================================
--- (empty file)
+++ z3/sqlos/trunk/event/interfaces.py	Fri Oct  8 18:57:24 2004
@@ -0,0 +1,31 @@
+##############################################################################
+#
+# Copyright (c) 2004 Enfold Systems LLC. All rights reserved.
+#
+# This software is distributed under the terms of the Zope Public
+# License (ZPL) v2.1. See COPYING.txt for more information.
+#
+##############################################################################
+"""
+$Id: __init__.py 5475 2004-07-07 15:52:34Z dreamcatcher $
+"""
+
+from zope.event import notify
+from zope.interface import implements
+from zope.app.event.interfaces import IObjectEvent
+from zope.app.event.objectevent import ObjectEvent
+
+class IObjectExpiredEvent(IObjectEvent):
+    """The object has been modified, but the changes should be
+    forgot.
+
+    Usually means the transaction has been aborted, or changes have
+    already been commited.
+    """
+
+class ObjectExpiredEvent(ObjectEvent):
+    implements(IObjectExpiredEvent)
+
+def expired(object):
+    notify(ObjectExpiredEvent(object))
+


More information about the z3-checkins mailing list