Commit fbb7ba2d authored by Casey Duncan's avatar Casey Duncan

Port interface check fix from 2.6 branch. This should now work

with new Zope3 interfaces
parent 18624392
...@@ -151,12 +151,10 @@ function toggleSelect() { ...@@ -151,12 +151,10 @@ function toggleSelect() {
<td> <td>
<div class="list-item"> <div class="list-item">
<dtml-if "_.string.find(_.str(_.getattr(this(),'__implements__','old')),'PluggableIndex')>-1"> <dtml-var meta_type>
&dtml-meta_type; <dtml-if isDeprecatedIndex>
<dtml-else>
<dtml-call "REQUEST.set('oldidx',1)"> <dtml-call "REQUEST.set('oldidx',1)">
(pre-2.4 index) (pre-2.4 index)
&dtml-meta_type;
</dtml-if> </dtml-if>
</div> </div>
</td> </td>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Simple column indices""" """Simple column indices"""
__version__='$Revision: 1.30 $'[11:-2] __version__='$Revision: 1.31 $'[11:-2]
from Persistence import Persistent from Persistence import Persistent
from BTrees.OOBTree import OOBTree from BTrees.OOBTree import OOBTree
...@@ -36,6 +36,8 @@ def nonEmpty(s): ...@@ -36,6 +36,8 @@ def nonEmpty(s):
class Index(Persistent): class Index(Persistent):
"""Index object interface""" """Index object interface"""
isDeprecatedIndex = 1
def __init__(self, data=None, schema=None, id=None, def __init__(self, data=None, schema=None, id=None,
ignore_ex=None, call_methods=None): ignore_ex=None, call_methods=None):
......
...@@ -130,7 +130,7 @@ Notes on a new text index design ...@@ -130,7 +130,7 @@ Notes on a new text index design
space. space.
""" """
__version__='$Revision: 1.31 $'[11:-2] __version__='$Revision: 1.32 $'[11:-2]
#XXX I strongly suspect that this is broken, but I'm not going to fix it. :( #XXX I strongly suspect that this is broken, but I'm not going to fix it. :(
...@@ -146,6 +146,8 @@ from Lexicon import Lexicon, stop_word_dict ...@@ -146,6 +146,8 @@ from Lexicon import Lexicon, stop_word_dict
from ResultList import ResultList from ResultList import ResultList
class TextIndex(Persistent): class TextIndex(Persistent):
isDeprecatedIndex = 1
def __init__(self, data=None, schema=None, id=None, def __init__(self, data=None, schema=None, id=None,
ignore_ex=None, call_methods=None): ignore_ex=None, call_methods=None):
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"""Simple column indices""" """Simple column indices"""
__version__='$Revision: 1.32 $'[11:-2] __version__='$Revision: 1.33 $'[11:-2]
from Globals import Persistent from Globals import Persistent
from Acquisition import Implicit from Acquisition import Implicit
...@@ -36,6 +36,8 @@ class UnIndex(Persistent, Implicit): ...@@ -36,6 +36,8 @@ class UnIndex(Persistent, Implicit):
"""UnIndex object interface""" """UnIndex object interface"""
meta_type = 'Field Index' meta_type = 'Field Index'
isDeprecatedIndex = 1
def __init__(self, id, ignore_ex=None, call_methods=None): def __init__(self, id, ignore_ex=None, call_methods=None):
"""Create an unindex """Create an unindex
......
...@@ -19,7 +19,7 @@ undo information so that objects can be unindexed when the old value ...@@ -19,7 +19,7 @@ undo information so that objects can be unindexed when the old value
is no longer known. is no longer known.
""" """
__version__ = '$Revision: 1.53 $'[11:-2] __version__ = '$Revision: 1.54 $'[11:-2]
import string, re import string, re
...@@ -64,6 +64,8 @@ class UnTextIndex(Persistent, Implicit): ...@@ -64,6 +64,8 @@ class UnTextIndex(Persistent, Implicit):
This isn't exactly how things are represented in memory, many This isn't exactly how things are represented in memory, many
optimizations happen along the way.""" optimizations happen along the way."""
isDeprecatedIndex = 1
meta_type = 'Text Index' meta_type = 'Text Index'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment