def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = [] self.ambiguous_char_width = env.config.get('notification', 'ambiguous_char_width', 'single') self.text_widths = {}
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = [] ambiguous_char_width = env.config.get('notification', 'ambiguous_char_width', 'single') self.ambiwidth = 2 if ambiguous_char_width == 'double' else 1
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = [] self.ambiguous_char_width = env.config.get('notification', 'ambiguous_char_width', 'single') self.text_widths = {}
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = [] ambiguous_char_width = env.config.get('notification', 'ambiguous_char_width', 'single') self.ambiwidth = 2 if ambiguous_char_width == 'double' else 1
def __init__(self, env, subject=None, data=None): NotifyEmail.__init__(self, env) self.to = [] self.cc = [] self.from_email = env.config.get("notification", "smtp_from") self.subject = subject or "" # If string given, place it into body variable, otherwise use dict or empty dict self.data = {"body": data} if isinstance(data, basestring) else data or {}
def __init__(self, env, subject=None, data=None): NotifyEmail.__init__(self, env) self.to = [] self.cc = [] self.from_email = env.config.get('notification', 'smtp_from') self.subject = subject or '' # If string given, place it into body variable, otherwise use dict or empty dict self.data = {'body':data} if isinstance(data, basestring) else data or {}
def __init__(self, env, recipient, body, link): NotifyEmail.__init__(self, env) self.recipient = recipient self.data = { 'body': body, 'link': link, 'project_name': env.project_name, 'project_url': env.project_url or self.env.abs_href(), }
def __init__(self, env): NotifyEmail.__init__(self, env) self.from_name = self.config.get('fullblog-notification', 'from_name') self.from_email = self.config.get('fullblog-notification', 'from_email') self.reply_to_email = self.config.get('fullblog-notification', 'reply_to_email') or self.from_email self.notification_actions = self.config.getlist('fullblog-notification', 'notification_actions') self.no_notification_categories = self.config.getlist('fullblog-notification', 'no_notification_categories')
def __init__(self, env, recipient, body, link): NotifyEmail.__init__(self, env) self.recipient = recipient self.data = { 'body': body, 'link': link, 'project_name': env.project_name, 'project_url': env.project_url or self.env.abs_href(), }
def __init__(self, env, data, template_name=None): NotifyEmail.__init__(self, env) locale_dir = pkg_resources.resource_filename(__name__, 'locale') add_domain(self.env.path, locale_dir) if template_name: self.template_name = template_name self._data = data if self._data and self._data['user_data']: # self._locale_string = self._data['user_data']['language'] # not used at the moment self._email_adr = self._data['user_data']['email']
def __init__(self, env, data, template_name=None): NotifyEmail.__init__(self, env) locale_dir = pkg_resources.resource_filename(__name__, 'locale') add_domain(self.env.path, locale_dir) if template_name: self.template_name = template_name self._data = data if self._data and self._data['user_data']: # self._locale_string = self._data['user_data']['language'] # not used at the moment self._email_adr = self._data['user_data']['email']
def __init__(self, env, project, message, authname): NotifyEmail.__init__(self, env) self.from_email = env.config.get('notification', 'smtp_from') add_auth_url = project.get_url() + "admin/general/permissions" self.project = project self.env = env self.data = {'project_name': project.project_name, 'message': message, 'authname': authname, 'add_auth_url': add_auth_url}
def __init__(self, env, project, message, authname): NotifyEmail.__init__(self, env) self.from_email = env.config.get('notification', 'smtp_from') add_auth_url = project.get_url() + "admin/general/permissions" self.project = project self.env = env self.data = { 'project_name': project.project_name, 'message': message, 'authname': authname, 'add_auth_url': add_auth_url }
def __init__(self, env, template_name, recipients, data): self.template_name = template_name self._recipients = recipients NotifyEmail.__init__(self, env) self.data.update(data)
def __init__(self, env): NotifyEmail.__init__(self, env) self.from_name = self.config.get('wiki-notification', 'from_name') self.banned_addresses = self.config.getlist('wiki-notification', 'banned_addresses')
def __init__(self, env): NotifyEmail.__init__(self, env) # Override the template type to always use NewTextTemplate if not isinstance(self.template, NewTextTemplate): self.template = Chrome(env).templates.load( self.template.filepath, cls=NewTextTemplate)
def __init__(self, env): NotifyEmail.__init__(self, env) self.cronconf = CronConfig(self.env)
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = [] self.ambiguous_char_width = env.config.get("notification", "ambiguous_char_width", "single") self.text_widths = {}
def __init__(self, env): NotifyEmail.__init__(self, env) # Override the template type to always use NewTextTemplate if not isinstance(self.template, NewTextTemplate): self.template = Chrome(env).templates.load(self.template.filepath, cls=NewTextTemplate)
def __init__(self, env, project, authname): NotifyEmail.__init__(self, env) self.from_email = env.config.get('notification', 'smtp_from') self.user = get_userstore().getUser(authname) self.data = {'_project_':project}
def __init__(self, env, milestone): NotifyEmail.__init__(self, env) self.milestone = milestone
def __init__(self, env, project, authname): NotifyEmail.__init__(self, env) self.from_email = env.config.get('notification', 'smtp_from') self.user = get_userstore().getUser(authname) self.data = {'_project_': project}
def __init__(self, env, milestone): NotifyEmail.__init__(self, env) self.milestone = milestone
def __init__(self, env, template_name, recipients, data): self.template_name = template_name self._recipients = recipients NotifyEmail.__init__(self, env) self.data.update(data)
def __init__(self, env): NotifyEmail.__init__(self, env) self.cronconf = CronConfig(self.env)
def __init__(self, env): NotifyEmail.__init__(self, env)
def __init__(self, env): NotifyEmail.__init__(self, env) self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs()) populate_hdf(self.hdf, env)
def __init__(self, env): NotifyEmail.__init__(self, env)
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = []
def __init__(self, env): NotifyEmail.__init__(self, env) self.prev_cc = []
def __init__(self, env): NotifyEmail.__init__(self, env) self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs()) populate_hdf(self.hdf, env)