# -*- coding: iso-8859-1 -*-
#-----------------------------------------------------------------------------
# Modeling Framework: an Object-Relational Bridge for python
#
# Copyright (c) 2001-2004 Sbastien Bigaret <sbigaret@users.sourceforge.net>
# All rights reserved.
#
# This file is part of the Modeling Framework.
#
# This code is distributed under a "3-clause BSD"-style license;
# see the LICENSE file for details.
#-----------------------------------------------------------------------------
"""
Observing Interface
See also: ObserverCenter
CVS information
$Id: Observing.py 932 2004-07-20 06:21:57Z sbigaret $
"""
__version__='$Revision: 932 $'[11:-2]
try:
from Interface import Base
except:
class Base:
pass
class ObservingInterface(Base):
"""
Must be implemented by observers for use by the ObserverCenter.
"""
def objectWillChange(self, anObject):
"""
Any observer registered in the ObserverCenter will be sent that message
for any object they observe.
Important: parameter 'anObject' may be 'None' for omniscient observers,
this happens resets the ObserverCenter's memory
(cf. ObserverCenter.notifyObserversObjectWillChange)
"""
|