Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
Zope
Commits
63a43826
Commit
63a43826
authored
18 years ago
by
Florent Guillaume
Browse files
Options
Download
Email Patches
Plain Diff
Don't warn when the ZGadflyDA is imported by Zope startup code.
parent
14637e80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lib/python/Products/ZGadflyDA/__init__.py
lib/python/Products/ZGadflyDA/__init__.py
+8
-5
No files found.
lib/python/Products/ZGadflyDA/__init__.py
View file @
63a43826
...
...
@@ -15,11 +15,14 @@
$Id$
"""
import
warnings
warnings
.
warn
(
'Using Gadfly and ZGadflyDA is deprecated. The module will be '
'removed in Zope 2.11)'
,
DeprecationWarning
,
stacklevel
=
2
)
# Don't warn when the product is imported by the startup code
import
sys
if
sys
.
_getframe
(
1
).
f_code
.
co_name
!=
'import_product'
:
# OFS.Application
import
warnings
warnings
.
warn
(
'Using Gadfly and ZGadflyDA is deprecated. '
'The module will be removed in Zope 2.11)'
,
DeprecationWarning
,
stacklevel
=
2
)
import
Globals
,
os
...
...
This diff is collapsed.
Click to expand it.
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