#NEWLINE# def get_new_confirm_key( self ) : #NEWLINE# #INDENT# "Returns key that isn't being used." #NEWLINE# while 1 : #NEWLINE# #INDENT# confirm_key = md5 . new ( ( '%s%s%s%s' % ( random . randint ( 0 , ( sys . maxint - 1 ) ) , os . getpid ( ) , time . time ( ) , settings . SECRET_KEY ) ) ) . hexdigest ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . get ( confirm_key = confirm_key ) #NEWLINE# #UNINDENT# except self . model . DoesNotExist : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# return confirm_key