Commit e5610dec authored by Nicolas Delaby's avatar Nicolas Delaby

Make buildEmailMessage a public method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25541 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63b49f30
......@@ -30,6 +30,7 @@ from Globals import DTMLFile
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions
from AccessControl import ModuleSecurityInfo
from Products.ERP5 import _dtmldir
from mimetypes import guess_type
......@@ -44,6 +45,9 @@ from email import Encoders
class ConversionError(Exception): pass
class MimeTypeException(Exception): pass
security = ModuleSecurityInfo('Products.ERP5.Tool.NotificationTool')
security.declarePublic('buildEmailMessage',)
def buildAttachmentDictList(document_list, document_type_list=()):
"""return a list of dictionary which will be used by buildEmailMessage"""
attachment_list = []
......
from AccessControl.SecurityInfo import allow_module
allow_module('Products.ERP5.Tool.NotificationTool')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment