Public feed #892552

Unbenannt

public text v1 · immutable
Raw Edit
·published 2008-02-05 15:11 UTC
rendered paste body
    def deine_function(self,result):
        if result is None:
            print "Not Registered"
        print "CALLBACKAUSGABE:",result

-------------------------------------------------------------------

                print "--------CALLBACKTEST------"
                myaction = device.services[0].get_action('GetRegistrationStatus') 
                test = myaction.call().addCallback(self.deine_function)
                
                d = myaction.call()
                d.addCallback(self.deine_function)
                print d
                print test
                print "--------CALLBACKTEST------"


--------CALLBACKTEST------
<Deferred at 0x2eb99490>
<Deferred at 0x2eb92da0>
--------CALLBACKTEST------