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
7fb9697d
Commit
7fb9697d
authored
Mar 01, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed _init to __init__, aliased _init for b/w compatability
parent
335b4edd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
lib/python/SearchIndex/Index.py
lib/python/SearchIndex/Index.py
+5
-2
lib/python/SearchIndex/TextIndex.py
lib/python/SearchIndex/TextIndex.py
+5
-2
No files found.
lib/python/SearchIndex/Index.py
View file @
7fb9697d
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Simple column indices"""
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
BTree
import
BTree
...
...
@@ -107,7 +107,7 @@ def nonEmpty(s):
class
Index
(
Persistent
):
"""Index object interface"""
def
_
init
(
self
,
data
,
schema
,
id
):
def
_
_init__
(
self
,
data
,
schema
,
id
):
"""Create an index
The arguments are:
...
...
@@ -127,6 +127,9 @@ class Index(Persistent):
self
.
_reindex
()
# for b/w compatability
_init
=
__init__
def
dpHasUniqueValuesFor
(
self
,
name
):
' has unique values for column NAME '
if
name
==
self
.
id
:
...
...
lib/python/SearchIndex/TextIndex.py
View file @
7fb9697d
...
...
@@ -202,7 +202,7 @@ Notes on a new text index design
space.
"""
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
from
Globals
import
Persistent
import
BTree
,
IIBTree
...
...
@@ -217,7 +217,7 @@ import string, regex, regsub
class
TextIndex
(
Persistent
):
def
_
init
(
self
,
data
,
schema
,
id
):
def
_
_init__
(
self
,
data
,
schema
,
id
):
"""Create an index
The arguments are:
...
...
@@ -237,6 +237,9 @@ class TextIndex(Persistent):
self
.
_syn
=
stop_word_dict
self
.
_reindex
()
# for backwards compatability
_init
=
__init__
def
clear
(
self
):
self
.
_index
=
BTree
()
...
...
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