Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
8f6056f6
Commit
8f6056f6
authored
Feb 08, 2017
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: testXHTML memory leak.
parent
2f9c1d13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
product/ERP5Type/dynamic/portal_type_class.py
product/ERP5Type/dynamic/portal_type_class.py
+11
-0
No files found.
product/ERP5Type/dynamic/portal_type_class.py
View file @
8f6056f6
...
...
@@ -374,6 +374,12 @@ def synchronizeDynamicModules(context, force=False):
try
:
for
class_name
,
klass
in
inspect
.
getmembers
(
erp5
.
portal_type
,
inspect
.
isclass
):
for
k
in
klass
.
mro
():
if
k
.
__module__
.
startswith
(
'erp5.'
):
for
attr
in
(
'__implements__'
,
'__implemented__'
,
'__provides__'
):
if
k
.
__dict__
.
get
(
attr
)
is
not
None
:
delattr
(
k
,
attr
)
klass
.
restoreGhostState
()
# Clear accessor holders of ZODB Property Sheets and Portal Types
...
...
@@ -402,3 +408,8 @@ def synchronizeDynamicModules(context, force=False):
cache_tool
=
getattr
(
portal
,
'portal_caches'
,
None
)
if
cache_tool
is
not
None
:
cache_tool
.
clearCache
()
import
zope.component
gsm
=
zope
.
component
.
getGlobalSiteManager
()
gsm
.
adapters
.
changed
(
gsm
)
gsm
.
utilities
.
changed
(
gsm
)
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