#NEWLINE# def expire_registration( request , registration_key ) : #NEWLINE# #INDENT# from kay.registration.models import RegistrationProfile #NEWLINE# p = db . get ( registration_key ) #NEWLINE# def txn( ) : #NEWLINE# #INDENT# if ( not p . activated ) : #NEWLINE# #INDENT# p . user . delete ( ) #NEWLINE# #UNINDENT# p . delete ( ) #NEWLINE# #UNINDENT# db . run_in_transaction ( txn ) #NEWLINE# return Response ( 'OK' )