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
64e1134a
Commit
64e1134a
authored
Mar 17, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added (back) some weird logic that seems to be necessary to support
some old broken lexicon settings.
parent
2caa1258
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/python/SearchIndex/UnTextIndex.py
lib/python/SearchIndex/UnTextIndex.py
+7
-2
No files found.
lib/python/SearchIndex/UnTextIndex.py
View file @
64e1134a
...
...
@@ -91,7 +91,7 @@ undo information so that objects can be unindexed when the old value
is no longer known.
"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
string
,
regex
,
regsub
,
ts_regex
import
operator
...
...
@@ -179,7 +179,12 @@ class UnTextIndex(Persistent, Implicit):
in this way, but I don't see too much of a problem with it."""
if
type
(
vocab_id
)
is
not
StringType
:
return
vocab_id
vocab
=
vocab_id
# we already havd the lexicon
# Through some sick hysterical accident, some lexicons
# simply wrap other lexicons, unless they don't. Waaaaaa.
vocab
=
getattr
(
vocab
,
'lexicon'
,
vocab
)
return
vocab
else
:
vocab
=
getattr
(
self
,
vocab_id
)
return
vocab
.
lexicon
...
...
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