예제 #1
0
 def get_subject_and_message(self, language):
     """
     Returns the subject and message rendered in the specified language.
     """
     return render_message_to_string(self.subject_template,
                                     self.message_template,
                                     self.get_email_params(),
                                     language=language)
예제 #2
0
 def get_subject_and_message_ccx(self, subject_template, message_template):
     """
     Returns the subject and message rendered in the specified language for CCX.
     """
     return render_message_to_string(
         subject_template,
         message_template,
         self.get_email_params_ccx()
     )
예제 #3
0
 def get_subject_and_message_ccx(self, subject_template, message_template):
     """
     Returns the subject and message rendered in the specified language for CCX.
     """
     return render_message_to_string(
         subject_template,
         message_template,
         self.get_email_params_ccx()
     )
예제 #4
0
 def get_subject_and_message(self, language):
     """
     Returns the subject and message rendered in the specified language.
     """
     return render_message_to_string(
         self.subject_template,
         self.message_template,
         self.get_email_params(),
         language=language
     )