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
2ed88fde
Commit
2ed88fde
authored
Oct 11, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added UnicodeSplitter
parent
4e0fbd88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
inst/build_extensions.py
inst/build_extensions.py
+1
-0
lib/python/Products/PluginIndexes/TextIndex/Splitter/__init__.py
...hon/Products/PluginIndexes/TextIndex/Splitter/__init__.py
+3
-1
No files found.
inst/build_extensions.py
View file @
2ed88fde
...
...
@@ -108,6 +108,7 @@ make('lib','python','SearchIndex')
make
(
'lib'
,
'python'
,
'Shared'
,
'DC'
,
'xml'
,
'pyexpat'
)
make
(
'lib'
,
'python'
,
'Products'
,
'PluginIndexes'
,
'TextIndex'
,
'Splitter'
,
'ZopeSplitter'
)
make
(
'lib'
,
'python'
,
'Products'
,
'PluginIndexes'
,
'TextIndex'
,
'Splitter'
,
'ISO_8859_1_Splitter'
)
make
(
'lib'
,
'python'
,
'Products'
,
'PluginIndexes'
,
'TextIndex'
,
'Splitter'
,
'UnicodeSplitter'
)
# Try to link/copy cPickle.so to BoboPOS to out-fox
# stock Python cPickle if using Python 1.5.2.
...
...
lib/python/Products/PluginIndexes/TextIndex/Splitter/__init__.py
View file @
2ed88fde
...
...
@@ -2,7 +2,8 @@ import os,sys,exceptions
availableSplitters
=
(
(
"ZopeSplitter"
,
"Zope Default Splitter"
),
(
"ISO_8859_1_Splitter"
,
"Werner Strobles ISO-8859-1 Splitter"
)
(
"ISO_8859_1_Splitter"
,
"Werner Strobles ISO-8859-1 Splitter"
),
(
"UnicodeSplitter"
,
"Unicode-aware splitter"
)
)
splitterNames
=
map
(
lambda
x
:
x
[
0
],
availableSplitters
)
...
...
@@ -16,6 +17,7 @@ def getSplitter(name=None):
if
not
vars
().
has_key
(
name
):
exec
(
"from %s import Splitter as %s"
%
(
name
,
name
))
return
vars
()[
name
]
...
...
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