Пример #1
0
    def _on_approved_status(self, instance):
        # TODO: email the customer with a canned response a la "Re:
        # <YourApprovedTask>" or "Re: <YourTacitlyApprovedTask>" and make it
        # clear how and why the work was approved.

        # trigger an email to our jackalope service to let the vendor know that
        # the task was approved.
        redflag.send_internal_email_from_service(
            "sendjack", instance.id, "THIS TASK WAS APPROVED",
            "neither the message nor subject make a difference")
Пример #2
0
 def _on_confirmed_status(self, instance):
     # trigger an email to our jackalope service to attempt to post the task
     # to a vendor. do not message the user.
     redflag.send_internal_email_from_service(
         "sendjack", instance.id, "POST THIS TASK",
         "neither the message nor subject make a difference")