Show
Ignore:
Timestamp:
04/25/03 00:08:31 (6 years ago)
Author:
sholloway
Message:

Depreciating WeakBind?, LazyProperty?
General cleanup tasks
Demo cleanups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBJabber/RBJabber/SubjectObserver/Subject.py

    r400 r528  
    2525no longer exisits or is explicitly released. 
    2626 
    27 WeakBind module is used extensively to prevent reference chains keeping objects in 
     27BindCallable module is used extensively to prevent reference chains keeping objects in 
    2828memory unnecessarily.""" 
    2929 
     
    3232#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3333 
    34 from RBFoundation import WeakBind 
     34from RBFoundation import BindCallable 
    3535import bisect 
    3636 
     
    5656        """Adds observer to the internal collection monitoring this subject 
    5757        Observer is assumed to be a callable object.""" 
    58         result = WeakBind.BindCallable(observer) 
     58        result = BindCallable.BindCallable(observer) 
    5959        bisect.insort(self._observers, (-priority, result)) 
    6060        return self 
     
    6363        """Removes observer from the internal collection monitoring this subject.   
    6464        Observer should be the same object that was passed to AddObserver.""" 
    65         result = WeakBind.BindCallable(observer) 
     65        result = BindCallable.BindCallable(observer) 
    6666        self._observers[:] = [x for x in self._observers if x[-1] != result] 
    6767        return self