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
17706ceb
Commit
17706ceb
authored
Mar 12, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for string module extermination
parent
8625e5e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+5
-5
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
17706ceb
...
...
@@ -33,7 +33,7 @@ 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
string
manage_addZCatalogForm
=
DTMLFile
(
'dtml/addZCatalog'
,
globals
())
...
...
@@ -473,7 +473,7 @@ class ZCatalog(Folder, Persistent, Implicit):
"A cataloged object must support the 'getPhysicalPath' "
"method if no unique id is provided when cataloging"
)
else
:
uid
=
string
.
join
(
uid
(),
'/'
)
else
:
uid
=
'/'
.
join
(
uid
()
)
elif
not
isinstance
(
uid
,
types
.
StringType
):
raise
CatalogError
(
'The object unique id must be a string.'
)
...
...
@@ -682,7 +682,7 @@ class ZCatalog(Folder, Persistent, Implicit):
and
(
not
obj_searchterm
or
(
hasattr
(
ob
,
'PrincipiaSearchSource'
)
and
string
.
find
(
ob
.
PrincipiaSearchSource
(),
obj_searchterm
)
>=
0
ob
.
PrincipiaSearchSource
().
find
(
obj_searchterm
)
>=
0
))
and
(
not
obj_expr
or
expr_match
(
ob
,
obj_expr
))
...
...
@@ -719,7 +719,7 @@ class ZCatalog(Folder, Persistent, Implicit):
No exceptions are raised.
"""
script
=
REQUEST
.
script
if
string
.
find
(
path
,
script
)
!=
0
:
if
path
.
find
(
script
)
!=
0
:
path
=
'%s/%s'
%
(
script
,
path
)
try
:
return
REQUEST
.
resolve_url
(
path
)
except
:
pass
...
...
@@ -755,7 +755,7 @@ class ZCatalog(Folder, Persistent, Implicit):
if
ob
is
None
:
removed
.
append
(
path
)
continue
ppath
=
string
.
join
(
ob
.
getPhysicalPath
(),
'/'
)
ppath
=
'/'
.
join
(
ob
.
getPhysicalPath
()
)
if
path
!=
ppath
:
fixed
.
append
((
path
,
ppath
))
else
:
...
...
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