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
26fa76c7
Commit
26fa76c7
authored
Jun 01, 2006
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a warning at Zope startup.
parent
d24c1a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lib/python/App/Product.py
lib/python/App/Product.py
+12
-1
No files found.
lib/python/App/Product.py
View file @
26fa76c7
...
...
@@ -42,7 +42,7 @@ import transaction
import
Globals
,
OFS
.
Folder
,
OFS
.
SimpleItem
,
Acquisition
,
Products
from
Globals
import
InitializeClass
import
ZClasses
,
AccessControl
.
Owned
import
AccessControl.Owned
from
OFS.Folder
import
Folder
from
HelpSys.HelpSys
import
ProductHelp
from
AccessControl
import
Unauthorized
...
...
@@ -53,6 +53,17 @@ from Permission import PermissionManager
import
RefreshFuncs
from
App.config
import
getConfiguration
# BBB: ZClasses are deprecated but we don't want the warning to appear here
import
warnings
warnings
.
filterwarnings
(
'ignore'
,
message
=
'^ZClasses'
,
append
=
1
)
try
:
import
ZClasses
finally
:
del
warnings
.
filters
[
-
1
]
try
:
del
__warningregistry__
except
NameError
:
pass
class
ProductFolder
(
Folder
):
"Manage a collection of Products"
...
...
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