#NEWLINE# def do_lifecycle( self , smpp ) : #NEWLINE# #INDENT# smpp . getDisconnectedDeferred ( ) . chainDeferred ( self . disconnectDeferred ) #NEWLINE# smpp . sendDataRequest ( SubmitSM ( ) ) . chainDeferred ( self . submitSMDeferred ) . addCallback ( ( lambda result : smpp . unbindAndDisconnect ( ) . chainDeferred ( self . unbindDeferred ) ) ) #NEWLINE# return smpp