Logo Search packages:      
Sourcecode: rapache version File versions

def rapache-0.6.orig::RapacheCore::Observer::PollyObserver::register (   self,
  obj 
)

adds an Observable instance to the poll of observed objects
and register itself to it.

Definition at line 49 of file Observer.py.

00049                            :
        """adds an Observable instance to the poll of observed objects
        and register itself to it."""
        #print "checking for same obj"
        for registered_obj in self.__observed:
            #print obj, ' == ', registered_obj, '??'
            if obj == registered_obj: return False
        self.__observed.append( obj )
        #print "-->",self.__observed
        obj.register( self )
        return True
    def unregister(self, obj):


Generated by  Doxygen 1.6.0   Back to index