Ejemplo n.º 1
0
 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 = {}
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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 = {}
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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 {}
Ejemplo n.º 6
0
 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 {}
Ejemplo n.º 7
0
 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(),
     }
Ejemplo n.º 8
0
 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')
Ejemplo n.º 9
0
 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(),
     }
Ejemplo n.º 10
0
    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']
Ejemplo n.º 11
0
    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']
Ejemplo n.º 12
0
    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}
Ejemplo n.º 13
0
    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
        }
Ejemplo n.º 14
0
 def __init__(self, env, template_name, recipients, data):
     self.template_name = template_name
     self._recipients = recipients
     NotifyEmail.__init__(self, env)
     self.data.update(data)
Ejemplo n.º 15
0
    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')
Ejemplo n.º 16
0
 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)
Ejemplo n.º 17
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.cronconf = CronConfig(self.env)
Ejemplo n.º 18
0
 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 = {}
Ejemplo n.º 19
0
 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)
Ejemplo n.º 20
0
 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}
Ejemplo n.º 21
0
 def __init__(self, env, milestone):
     NotifyEmail.__init__(self, env)
     self.milestone = milestone
Ejemplo n.º 22
0
 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}
Ejemplo n.º 23
0
 def __init__(self, env, milestone):
     NotifyEmail.__init__(self, env)
     self.milestone = milestone
Ejemplo n.º 24
0
 def __init__(self, env, template_name, recipients, data):
     self.template_name = template_name
     self._recipients = recipients
     NotifyEmail.__init__(self, env)
     self.data.update(data)
Ejemplo n.º 25
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.cronconf = CronConfig(self.env)
Ejemplo n.º 26
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
Ejemplo n.º 27
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs())
     populate_hdf(self.hdf, env)
Ejemplo n.º 28
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
Ejemplo n.º 29
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.prev_cc = []
Ejemplo n.º 30
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.prev_cc = []
Ejemplo n.º 31
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs())
     populate_hdf(self.hdf, env)