def _get_default_subject_prefix(): prefix = "" if Deployment.is_prod(): prefix = "PROD: " elif Deployment.is_staging(): prefix = "STAGING: " elif Deployment.is_dev(): prefix = "DEV: " return unicode(prefix)
def _get_default_sender_name(): name = "" if Deployment.is_prod(): name = "Jackalope" elif Deployment.is_staging(): name = "Jackalope Staging" elif Deployment.is_dev(): name = "Jackalope Dev" return unicode(name)