diff options
Diffstat (limited to 'src/zope/event/__init__.py')
-rw-r--r-- | src/zope/event/__init__.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/zope/event/__init__.py b/src/zope/event/__init__.py new file mode 100644 index 0000000..a12a4bf --- /dev/null +++ b/src/zope/event/__init__.py @@ -0,0 +1,23 @@ +############################################################################## +# +# Copyright (c) 2004 Zope Corporation and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## +"""base event system implementation + +$Id$ +""" + +subscribers = [] + +def notify(event): + for subscriber in subscribers: + subscriber(event) |