예제 #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 = {}
예제 #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
예제 #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 = {}
예제 #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
예제 #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 {}
예제 #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 {}
예제 #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(),
     }
예제 #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')
예제 #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(),
     }
예제 #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']
예제 #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']
예제 #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}
예제 #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
        }
예제 #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)
예제 #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')
예제 #16
0
파일: notify.py 프로젝트: hefloryd/bitten
 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)
예제 #17
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.cronconf = CronConfig(self.env)
예제 #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 = {}
예제 #19
0
파일: notify.py 프로젝트: kroman0/bitten
 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)
예제 #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}
예제 #21
0
 def __init__(self, env, milestone):
     NotifyEmail.__init__(self, env)
     self.milestone = milestone
예제 #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}
예제 #23
0
파일: task.py 프로젝트: nyuhuhuu/trachacks
 def __init__(self, env, milestone):
     NotifyEmail.__init__(self, env)
     self.milestone = milestone
예제 #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)
예제 #25
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.cronconf = CronConfig(self.env)
예제 #26
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
예제 #27
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs())
     populate_hdf(self.hdf, env)
예제 #28
0
파일: notify.py 프로젝트: lkraav/trachacks
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
예제 #29
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.prev_cc = []
예제 #30
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.prev_cc = []
예제 #31
0
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs())
     populate_hdf(self.hdf, env)