#NEWLINE# def get_unsubscribe_token( self , email , expiration = 604800 ) : #NEWLINE# #INDENT# s = Serializer ( current_app . config [ 'SECRET_KEY' ] , expiration ) #NEWLINE# return s . dumps ( { #NEWLINE# #INDENT# 'talk' : self . id , #NEWLINE# 'email' : email , #NEWLINE# #UNINDENT# } ) . decode ( 'utf-8' )