[Zope3-checkins] CVS: Zope3/src/zope/app/tentative - interfaces.py:1.1.2.1

Nathan Yergler nathan at yergler.net
Thu Apr 1 08:19:04 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/tentative
In directory cvs.zope.org:/tmp/cvs-serv31529/src/zope/app/tentative

Added Files:
      Tag: tentative-branch
	interfaces.py 
Log Message:


Initial checkin of tentative event work; 
implemented stub of IIssue interface




=== Added File Zope3/src/zope/app/tentative/interfaces.py ===
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Observable interfaces

$Id: interfaces.py,v 1.1.2.1 2004/04/01 13:19:03 nathan Exp $
"""

from zope.interface import implements
from zope.interface.interfaces import Interface, IInterface

class IIssue(Interface):
    pass

class IObservable(Interface):
    
    def notify(event, provided):
        """Notify all subscribers that the event provided has occured."""

    def subscribe(required, provided, subscriber):
        """Subscribe to an event for a particular instance."""
        




More information about the Zope3-Checkins mailing list