MCPcopy Create free account
hub / github.com/ActiveState/code / callback

Function callback

recipes/Python/473865_Authenticate/recipe-473865.py:78–80  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

76 [('authenticated', True), ('name', 'admin'), ('roles', ['Manager', 'Authenticated']), ('id', 'admin')]
77 '''
78 def callback(data):
79 print data.items()
80 reactor.stop()
81 def errback(failure):
82 #print failure.getErrorMessage()
83 reactor.stop()

Callers 2

receiveFunction · 0.50
postEventWithCallbackMethod · 0.50

Calls 2

itemsMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected