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
aba0855f
Commit
aba0855f
authored
Dec 07, 2003
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added fallback to old interface
- removed unused imports
parent
433e9636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+19
-9
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
aba0855f
...
...
@@ -10,32 +10,31 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""ZCatalog product"""
""" ZCatalog product
$Id: ZCatalog.py,v 1.128 2003/12/07 16:12:40 yuppie Exp $
"""
from
Globals
import
DTMLFile
,
MessageDialog
import
Globals
from
OFS.Folder
import
Folder
from
OFS.FindSupport
import
FindSupport
from
OFS.ObjectManager
import
ObjectManager
from
DateTime
import
DateTime
from
Acquisition
import
Implicit
from
Acquisition
import
Implicit
from
Persistence
import
Persistent
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
DocumentTemplate.DT_Util
import
Eval
from
AccessControl.Permission
import
name_trans
from
Catalog
import
Catalog
,
CatalogError
from
AccessControl
import
getSecurityManager
from
AccessControl.DTML
import
RestrictedDTML
from
AccessControl.Permissions
import
\
manage_zcatalog_entries
,
manage_zcatalog_indexes
,
search_zcatalog
from
zLOG
import
LOG
,
ERROR
from
ZCatalogIndexes
import
ZCatalogIndexes
from
Products.PluginIndexes.common.PluggableIndex
\
import
PluggableIndexInterface
from
Products.PluginIndexes.TextIndex.Vocabulary
import
Vocabulary
from
Products.PluginIndexes.TextIndex
import
Splitter
import
urllib
,
os
,
sys
,
time
,
types
import
urllib
,
time
,
types
import
string
from
IZCatalog
import
IZCatalog
...
...
@@ -456,8 +455,19 @@ class ZCatalog(Folder, Persistent, Implicit):
if
obj
is
not
None
:
# don't update metadata when only reindexing a single
# index via the UI
self
.
catalog_object
(
obj
,
p
,
idxs
=
[
name
],
update_metadata
=
0
)
try
:
self
.
catalog_object
(
obj
,
p
,
idxs
=
[
name
],
update_metadata
=
0
)
except
TypeError
:
# Fall back to Zope 2.6.2 interface. This is necessary for
# products like CMF 1.4.2 and earlier that subclass from
# ZCatalog and don't support the update_metadata argument.
# May be removed some day.
from
warnings
import
warn
warn
(
'catalog_object interface of %s not up to date'
%
self
.
__class__
.
__name__
,
DeprecationWarning
)
self
.
catalog_object
(
obj
,
p
,
idxs
=
[
name
])
def
manage_reindexIndex
(
self
,
ids
=
None
,
REQUEST
=
None
,
RESPONSE
=
None
,
URL1
=
None
):
...
...
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