Commit c88505a4 authored by Tristan Cavelier's avatar Tristan Cavelier

ERP5Type: Allow PythonScripts to access email.mime module

/reviewed-on !117
parent c4b8f2d5
......@@ -211,6 +211,14 @@ ModuleSecurityInfo('os.path').declarePublic(
# Also allow some handy data properties.
'sep', 'pardir', 'curdir', 'extsep',
)
ModuleSecurityInfo('email.mime.application').declarePublic('MIMEApplication')
ModuleSecurityInfo('email.mime.audio').declarePublic('MIMEAudio')
ModuleSecurityInfo('email.mime.base').declarePublic('MIMEBase')
ModuleSecurityInfo('email.mime.image').declarePublic('MIMEImage')
ModuleSecurityInfo('email.mime.message').declarePublic('MIMEMessage')
ModuleSecurityInfo('email.mime.multipart').declarePublic('MIMEMultipart')
ModuleSecurityInfo('email.mime.nonmultipart').declarePublic('MIMENonMultipart')
ModuleSecurityInfo('email.mime.text').declarePublic('MIMEText')
# Alias modules - only applied to restricted python.
MNAME_MAP = {
......
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