Author: bugman Date: Wed Jul 13 19:17:09 2011 New Revision: 13598 URL: http://svn.gna.org/viewcvs/relax?rev=13598&view=rev Log: Reverted r13586 as it turned all observers into the same singleton!!! The command used was: svn merge -r13586:13585 . ..... r13586 | bugman | 2011-07-13 14:27:39 +0200 (Wed, 13 Jul 2011) | 3 lines Changed paths: M /branches/gui_testing/observer.py The Observer object no longer uses __init__() to setup structures as the singleton design kills it. ..... Modified: branches/gui_testing/observer.py Modified: branches/gui_testing/observer.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/observer.py?rev=13598&r1=13597&r2=13598&view=diff ============================================================================== --- branches/gui_testing/observer.py (original) +++ branches/gui_testing/observer.py Wed Jul 13 19:17:09 2011 @@ -30,8 +30,11 @@ class Observer(object): """The observer design pattern base class.""" - # The dictionary of callback methods. - _callback = {} + def __init__(self): + """Set up the object.""" + + # The dictionary of callback methods. + self._callback = {} def notify_observers(self):