#NEWLINE# def get_message_context( self , order ) : #NEWLINE# #INDENT# ctx = { #NEWLINE# #INDENT# 'user' : self . request . user , #NEWLINE# 'order' : order , #NEWLINE# 'site' : get_current_site ( self . request ) , #NEWLINE# 'lines' : order . lines . all ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if ( not self . request . user . is_authenticated ( ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# path = reverse ( 'customer:anon-order' , kwargs = { #NEWLINE# #INDENT# 'order_number' : order . number , #NEWLINE# 'hash' : order . verification_hash ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except NoReverseMatch : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# site = Site . objects . get_current ( ) #NEWLINE# ctx [ 'status_url' ] = ( 'http://%s%s' % ( site . domain , order ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ctx