#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# if self . product : #NEWLINE# #INDENT# title = self . product . title #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# title = _ ( '<missing product>' ) #NEWLINE# #UNINDENT# return ( _ ( "Product '%(name)s', quantity '%(qty)s'" ) % { #NEWLINE# #INDENT# 'name' : title , #NEWLINE# 'qty' : title . quantity , #NEWLINE# #UNINDENT# } )