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
1895fa10
Commit
1895fa10
authored
Mar 28, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No commit message
No commit message
parent
c10f3963
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+10
-2
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
1895fa10
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
$Id$
$Id$
"""
"""
from
warnings
import
warn
import
urllib
,
time
,
sys
,
string
,
logging
import
urllib
,
time
,
sys
,
string
,
logging
from
Globals
import
DTMLFile
,
MessageDialog
from
Globals
import
DTMLFile
,
MessageDialog
...
@@ -501,11 +502,18 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -501,11 +502,18 @@ class ZCatalog(Folder, Persistent, Implicit):
# products like CMF 1.4.2 and earlier that subclass from
# products like CMF 1.4.2 and earlier that subclass from
# ZCatalog and don't support the update_metadata argument.
# ZCatalog and don't support the update_metadata argument.
# May be removed some day.
# May be removed some day.
from
warnings
import
warn
warn
(
'catalog_object interface of %s not up to date'
warn
(
'catalog_object interface of %s not up to date'
%
self
.
__class__
.
__name__
,
%
self
.
__class__
.
__name__
,
DeprecationWarning
)
DeprecationWarning
)
try
:
self
.
catalog_object
(
obj
,
p
,
idxs
=
name
,
pghandler
=
pghandler
)
self
.
catalog_object
(
obj
,
p
,
idxs
=
name
,
pghandler
=
pghandler
)
except
TypeError
:
# Fall back to pre-Zope 2.8 interface where there is no
# 'pghandler' argument.
warn
(
'catalog_object interface of %s not up to date'
%
self
.
__class__
.
__name__
,
DeprecationWarning
)
self
.
catalog_object
(
obj
,
p
,
idxs
=
name
)
if
pghandler
:
if
pghandler
:
pghandler
.
finish
()
pghandler
.
finish
()
...
...
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