Commit 14637e80 authored by Florent Guillaume's avatar Florent Guillaume

Removed a warning at Zope startup.

parent 8b9ec2c4
...@@ -42,7 +42,7 @@ import transaction ...@@ -42,7 +42,7 @@ import transaction
import Globals, OFS.Folder, OFS.SimpleItem, Acquisition, Products import Globals, OFS.Folder, OFS.SimpleItem, Acquisition, Products
from Globals import InitializeClass from Globals import InitializeClass
import ZClasses, AccessControl.Owned import AccessControl.Owned
from OFS.Folder import Folder from OFS.Folder import Folder
from HelpSys.HelpSys import ProductHelp from HelpSys.HelpSys import ProductHelp
from AccessControl import Unauthorized from AccessControl import Unauthorized
...@@ -53,6 +53,17 @@ from Permission import PermissionManager ...@@ -53,6 +53,17 @@ from Permission import PermissionManager
import RefreshFuncs import RefreshFuncs
from App.config import getConfiguration 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): class ProductFolder(Folder):
"Manage a collection of Products" "Manage a collection of Products"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment