Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
5afaef9e
Commit
5afaef9e
authored
Aug 05, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the cleanup code more fail-safe
parent
8f06ece1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/OFS/metaconfigure.py
src/OFS/metaconfigure.py
+3
-2
No files found.
src/OFS/metaconfigure.py
View file @
5afaef9e
...
...
@@ -199,8 +199,9 @@ def cleanUp():
_registered_packages
=
[]
global
_meta_type_regs
Products
.
meta_types
=
tuple
([
info
for
info
in
Products
.
meta_types
if
info
[
'name'
]
not
in
_meta_type_regs
])
old
=
getattr
(
Products
,
'meta_types'
,
())
new
=
tuple
([
info
for
info
in
old
if
info
[
'name'
]
not
in
_meta_type_regs
])
setattr
(
Products
,
'meta_types'
,
new
)
_meta_type_regs
=
[]
...
...
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