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
40d94341
Commit
40d94341
authored
Nov 26, 2004
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail a bit more gracefully if no lexicon is passed.
parent
c2a3f8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/python/Products/ZCTextIndex/ZCTextIndex.py
lib/python/Products/ZCTextIndex/ZCTextIndex.py
+1
-1
No files found.
lib/python/Products/ZCTextIndex/ZCTextIndex.py
View file @
40d94341
...
@@ -74,7 +74,7 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
...
@@ -74,7 +74,7 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
self
.
_indexed_attrs
=
self
.
_fieldname
.
split
(
','
)
self
.
_indexed_attrs
=
self
.
_fieldname
.
split
(
','
)
self
.
_indexed_attrs
=
[
attr
.
strip
()
for
attr
in
self
.
_indexed_attrs
if
attr
]
self
.
_indexed_attrs
=
[
attr
.
strip
()
for
attr
in
self
.
_indexed_attrs
if
attr
]
lexicon_id
=
lexicon_id
or
extra
.
lexicon_id
lexicon_id
=
lexicon_id
or
getattr
(
extra
,
'lexicon_id'
,
''
)
lexicon
=
getattr
(
caller
,
lexicon_id
,
None
)
lexicon
=
getattr
(
caller
,
lexicon_id
,
None
)
if
lexicon
is
None
:
if
lexicon
is
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