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------ --------CALLBACKTEST------