Changeset 528 for trunk/RBJabber

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

Depreciating WeakBind?, LazyProperty?
General cleanup tasks
Demo cleanups

Files:

Legend:

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

    r397 r528  
    4040from RBFoundation.XMLClassBuilder import XMLClassBuilderMixin 
    4141from RBFoundation import SmartSelect 
    42 from RBFoundation.WeakBind import BindCallable 
     42from RBFoundation.BindCallable import BindCallable 
    4343import JID 
    4444import sys 
  • trunk/RBJabber/RBJabber/JabberObserver.py

    r400 r528  
    2424#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2525 
    26 from RBFoundation.WeakBind import BoundCallable, BindCallable 
     26from RBFoundation.BindCallable import BoundCallable, BindCallable 
    2727import JID 
    2828 
  • trunk/RBJabber/RBJabber/JabberSubject.py

    r400 r528  
    2626from SubjectObserver.CategorySubject import CategorySubjectBaseMixin 
    2727from SubjectObserver import ProxyBidableCategorySubjectMixin 
    28 from RBFoundation.WeakBind import BoundCallableBase 
     28from RBFoundation.BindCallable import BoundCallableBase 
    2929import JID 
    3030 
  • trunk/RBJabber/RBJabber/SubjectObserver/AssociativeObserver.py

    r400 r528  
    3030#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3131 
    32 from RBFoundation.WeakBind import BindCallable 
     32from RBFoundation.BindCallable import BindCallable 
    3333import ProxyBidableCategorySubjectMixin 
    3434 
  • trunk/RBJabber/RBJabber/SubjectObserver/CategorySubject.py

    r400 r528  
    3030 
    3131from Subject import Subject 
    32 from RBFoundation import WeakBind 
     32from RBFoundation import BindCallable 
    3333import bisect 
    3434 
     
    4747     
    4848    def AddObserver(self, category, observer, priority=0): 
    49         result = WeakBind.BindCallable(observer) 
     49        result = BindCallable.BindCallable(observer) 
    5050        bisect.insort(self._observers.setdefault(category,[]), (-priority, result)) 
    5151        return self 
    5252 
    5353    def RemoveObserver(self, observer): 
    54         result = WeakBind.BindCallable(observer) 
     54        result = BindCallable.BindCallable(observer) 
    5555        for observers in self._observers.itervalues(): 
    5656            observers[:] = [x for x in observers if x[-1] != result] 
  • trunk/RBJabber/RBJabber/SubjectObserver/Observer.py

    r400 r528  
    3030#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3131 
    32 from RBFoundation.WeakBind import BoundCallable, BindCallable 
     32from RBFoundation.BindCallable import BoundCallable, BindCallable 
    3333 
    3434#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  • trunk/RBJabber/RBJabber/SubjectObserver/SchedulerSubject.py

    r400 r528  
    2727 
    2828import bisect, time 
    29 from RBFoundation import WeakBind 
     29from RBFoundation import BindCallable 
    3030 
    3131#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    3535class SchedulerSubject(object): 
    3636    def __init__(self, TimeFn=time.time): 
    37         self._TimeFn = WeakBind.BindCallable(TimeFn) 
     37        self._TimeFn = BindCallable.BindCallable(TimeFn) 
    3838        self._LastTime = 0 
    3939        self._events = [] 
     
    4747 
    4848    def AddEvent(self, Time, observer): 
    49         result = Time, WeakBind.BindCallable(observer) 
     49        result = Time, BindCallable.BindCallable(observer) 
    5050        bisect.insort(self._events, result) 
    5151        return self 
    5252 
    5353    def RemoveEvent(self, observer): 
    54         result = WeakBind.BindCallable(observer) 
     54        result = BindCallable.BindCallable(observer) 
    5555        self._events[:] = [x for x in self._events if x[-1] != result] 
    5656        return self 
  • 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 
  • trunk/RBJabber/RBJabber/iqAuthQuery.py

    r397 r528  
    2626import weakref, sha 
    2727from xml.sax.saxutils import escape, quoteattr 
    28 from RBFoundation.WeakBind import BindCallable 
     28from RBFoundation.BindCallable import BindCallable 
    2929from iqQuery import iqQueryBase 
    3030  
  • trunk/RBJabber/RBJabber/iqQuery.py

    r397 r528  
    2626import weakref 
    2727from xml.sax.saxutils import escape, quoteattr 
    28 from RBFoundation.WeakBind import BindCallable 
     28from RBFoundation.BindCallable import BindCallable 
    2929import JabberObserver as JObs 
    3030import JID 
  • trunk/RBJabber/RBJabber/iqResponse.py

    r397 r528  
    2828import weakref 
    2929from xml.sax.saxutils import escape, quoteattr 
    30 from RBFoundation.WeakBind import BindCallable 
     30from RBFoundation.BindCallable import BindCallable 
    3131import JabberObserver as JObs 
    3232import JID 
  • trunk/RBJabber/RBJabber/iqRosterQuery.py

    r400 r528  
    2626import weakref 
    2727from xml.sax.saxutils import escape, quoteattr 
    28 from RBFoundation.WeakBind import BindCallable 
     28from RBFoundation.BindCallable import BindCallable 
    2929from SubjectObserver.CategorySubject import CategorySubject 
    3030from iqQuery import iqQueryBase