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
66878f3c
Commit
66878f3c
authored
Jun 04, 2004
by
Paul Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector 1317: added FindSupport support for cmf's SearchableText.
parent
dfe6a688
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/OFS/FindSupport.py
lib/python/OFS/FindSupport.py
+5
-2
No files found.
lib/python/OFS/FindSupport.py
View file @
66878f3c
...
@@ -109,7 +109,6 @@ class FindSupport(ExtensionClass.Base):
...
@@ -109,7 +109,6 @@ class FindSupport(ExtensionClass.Base):
if
hasattr
(
ob
,
'aq_base'
):
if
hasattr
(
ob
,
'aq_base'
):
bs
=
ob
.
aq_base
bs
=
ob
.
aq_base
else
:
bs
=
ob
else
:
bs
=
ob
if
(
if
(
(
not
obj_ids
or
absattr
(
bs
.
getId
())
in
obj_ids
)
(
not
obj_ids
or
absattr
(
bs
.
getId
())
in
obj_ids
)
and
and
...
@@ -119,7 +118,11 @@ class FindSupport(ExtensionClass.Base):
...
@@ -119,7 +118,11 @@ class FindSupport(ExtensionClass.Base):
(
not
obj_searchterm
or
(
not
obj_searchterm
or
(
hasattr
(
ob
,
'PrincipiaSearchSource'
)
and
(
hasattr
(
ob
,
'PrincipiaSearchSource'
)
and
ob
.
PrincipiaSearchSource
().
find
(
str
(
obj_searchterm
))
>=
0
ob
.
PrincipiaSearchSource
().
find
(
str
(
obj_searchterm
))
>=
0
))
)
or
(
hasattr
(
ob
,
'SearchableText'
)
and
ob
.
SearchableText
().
find
(
str
(
obj_searchterm
))
>=
0
)
)
and
and
(
not
obj_expr
or
expr_match
(
ob
,
obj_expr
))
(
not
obj_expr
or
expr_match
(
ob
,
obj_expr
))
and
and
...
...
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