Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
d076553e
Commit
d076553e
authored
Jan 31, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
override pt_render to allow empty strings
parent
c821eb3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
product/MailTemplates/MailTemplate.py
product/MailTemplates/MailTemplate.py
+7
-0
No files found.
product/MailTemplates/MailTemplate.py
View file @
d076553e
...
@@ -11,6 +11,7 @@ from AccessControl import getSecurityManager
...
@@ -11,6 +11,7 @@ from AccessControl import getSecurityManager
from
App.class_init
import
default__class_init__
as
InitializeClass
from
App.class_init
import
default__class_init__
as
InitializeClass
from
App.Common
import
package_home
from
App.Common
import
package_home
from
Products.PageTemplates.ZopePageTemplate
import
ZopePageTemplate
from
Products.PageTemplates.ZopePageTemplate
import
ZopePageTemplate
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
BaseMailTemplate
import
BaseMailTemplate
from
BaseMailTemplate
import
BaseMailTemplate
...
@@ -93,6 +94,12 @@ class MailTemplate(BaseMailTemplate,ZopePageTemplate):
...
@@ -93,6 +94,12 @@ class MailTemplate(BaseMailTemplate,ZopePageTemplate):
finally
:
finally
:
security
.
removeContext
(
self
)
security
.
removeContext
(
self
)
def
pt_render
(
self
,
source
=
False
,
extra_context
=
{}):
# Override to support empty strings
result
=
PageTemplate
.
pt_render
(
self
,
source
,
extra_context
)
or
u''
assert
isinstance
(
result
,
unicode
)
return
result
InitializeClass
(
MailTemplate
)
InitializeClass
(
MailTemplate
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment