Project

General

Profile

« Previous | Next » 

Revision 3d7bbe55

Added by Marc Dequènes over 14 years ago

  • ID 3d7bbe55cb6110cbe884ce7c45db045849a2be38

[evol] improved Order classes a lot (closes #101)

View differences:

bin/postman
return true
end
order = MailOrder.parse(report.user, report.message)
mail_parser = MailOrderParser.new(report.user)
order = mail_parser.parse(report.message)
result_tag = order.valid? ? "SUCCESS" : "FAILURE"
result_msg = "Processing result: #{result_tag}"
result_msg += " (#{order.error.untranslated})" unless order.valid?

Also available in: Unified diff