当前位置: 首页>>代码示例>>Python>>正文


Python NotifyEmail.__init__方法代码示例

本文整理汇总了Python中trac.notification.NotifyEmail.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python NotifyEmail.__init__方法的具体用法?Python NotifyEmail.__init__怎么用?Python NotifyEmail.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在trac.notification.NotifyEmail的用法示例。


在下文中一共展示了NotifyEmail.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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
开发者ID:dinhkhanh,项目名称:trac,代码行数:9,代码来源:notification.py

示例2: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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 = {}
开发者ID:zjj,项目名称:trac_hack,代码行数:9,代码来源:notification.py

示例3: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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 {}
开发者ID:nagyistoce,项目名称:trac-multiproject,代码行数:10,代码来源:email.py

示例4: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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(),
     }
开发者ID:centaurustech,项目名称:bountyfunding,代码行数:11,代码来源:bountyfunding.py

示例5: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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')
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:11,代码来源:notification.py

示例6: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
    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']
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:13,代码来源:XMailEMailModule.py

示例7: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
    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}
开发者ID:alvabai,项目名称:trac-multiproject,代码行数:14,代码来源:api.py

示例8: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.prev_cc = []
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:5,代码来源:notification.py

示例9: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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 = {}
开发者ID:wiraqutra,项目名称:photrackjp,代码行数:7,代码来源:notification.py

示例10: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
开发者ID:lkraav,项目名称:trachacks,代码行数:4,代码来源:notify.py

示例11: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 def __init__(self, env, milestone):
     NotifyEmail.__init__(self, env)
     self.milestone = milestone
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:5,代码来源:task.py

示例12: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 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)
开发者ID:hefloryd,项目名称:bitten,代码行数:8,代码来源:notify.py

示例13: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.hdf = HDFWrapper(loadpaths=self.get_templates_dirs())
     populate_hdf(self.hdf, env)
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:6,代码来源:listener.py

示例14: __init__

# 需要导入模块: from trac.notification import NotifyEmail [as 别名]
# 或者: from trac.notification.NotifyEmail import __init__ [as 别名]
 def __init__(self, env):
     NotifyEmail.__init__(self, env)
     self.cronconf = CronConfig(self.env)
开发者ID:nyuhuhuu,项目名称:trachacks,代码行数:5,代码来源:listener.py


注:本文中的trac.notification.NotifyEmail.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。