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
adbd86c9
Commit
adbd86c9
authored
Jul 05, 2005
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partially reverted r30994 to avoid infinite import loops
parent
ae607650
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
21 additions
and
33 deletions
+21
-33
lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py
.../Products/PluginIndexes/DateIndex/tests/test_DateIndex.py
+3
-3
lib/python/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py
...PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py
+3
-3
lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
...Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
+3
-3
lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
...ucts/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
+3
-3
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+1
-2
lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
...n/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
+1
-1
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
+1
-2
lib/python/Products/PluginIndexes/TextIndex/tests/testTextIndex.py
...n/Products/PluginIndexes/TextIndex/tests/testTextIndex.py
+1
-1
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
+1
-2
lib/python/Products/PluginIndexes/TopicIndex/tests/testTopicIndex.py
...Products/PluginIndexes/TopicIndex/tests/testTopicIndex.py
+1
-1
lib/python/Products/PluginIndexes/common/UnIndex.py
lib/python/Products/PluginIndexes/common/UnIndex.py
+0
-5
lib/python/Products/ZCTextIndex/ZCTextIndex.py
lib/python/Products/ZCTextIndex/ZCTextIndex.py
+1
-2
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
+1
-1
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+0
-3
lib/python/Products/ZCatalog/tests/testCatalog.py
lib/python/Products/ZCatalog/tests/testCatalog.py
+1
-1
No files found.
lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py
View file @
adbd86c9
...
...
@@ -172,9 +172,9 @@ class DI_Tests(unittest.TestCase):
from
zope.interface.verify
import
verifyClass
verifyClass
(
IDateIndex
,
DateIndex
)
verifyClass
(
IPluggableIndex
,
DateIndex
)
verifyClass
(
ISortIndex
,
DateIndex
)
verifyClass
(
IUniqueValueIndex
,
DateIndex
)
verifyClass
(
IPluggableIndex
,
DateIndex
,
1
)
verifyClass
(
ISortIndex
,
DateIndex
,
1
)
verifyClass
(
IUniqueValueIndex
,
DateIndex
,
1
)
def
test_empty
(
self
):
empty
=
self
.
_index
...
...
lib/python/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py
View file @
adbd86c9
...
...
@@ -88,9 +88,9 @@ class DRI_Tests( unittest.TestCase ):
from
zope.interface.verify
import
verifyClass
verifyClass
(
IDateRangeIndex
,
DateRangeIndex
)
verifyClass
(
IPluggableIndex
,
DateRangeIndex
)
verifyClass
(
ISortIndex
,
DateRangeIndex
)
verifyClass
(
IUniqueValueIndex
,
DateRangeIndex
)
verifyClass
(
IPluggableIndex
,
DateRangeIndex
,
1
)
verifyClass
(
ISortIndex
,
DateRangeIndex
,
1
)
verifyClass
(
IUniqueValueIndex
,
DateRangeIndex
,
1
)
def
test_empty
(
self
):
...
...
lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
View file @
adbd86c9
...
...
@@ -100,9 +100,9 @@ class FieldIndexTests(unittest.TestCase):
from
Products.PluginIndexes.interfaces
import
IUniqueValueIndex
from
zope.interface.verify
import
verifyClass
verifyClass
(
IPluggableIndex
,
FieldIndex
)
verifyClass
(
ISortIndex
,
FieldIndex
)
verifyClass
(
IUniqueValueIndex
,
FieldIndex
)
verifyClass
(
IPluggableIndex
,
FieldIndex
,
1
)
verifyClass
(
ISortIndex
,
FieldIndex
,
1
)
verifyClass
(
IUniqueValueIndex
,
FieldIndex
,
1
)
def
testEmpty
(
self
):
"Test an empty FieldIndex."
...
...
lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
View file @
adbd86c9
...
...
@@ -120,9 +120,9 @@ class TestKeywordIndex( unittest.TestCase ):
from
Products.PluginIndexes.interfaces
import
IUniqueValueIndex
from
zope.interface.verify
import
verifyClass
verifyClass
(
IPluggableIndex
,
KeywordIndex
)
verifyClass
(
ISortIndex
,
KeywordIndex
)
verifyClass
(
IUniqueValueIndex
,
KeywordIndex
)
verifyClass
(
IPluggableIndex
,
KeywordIndex
,
1
)
verifyClass
(
ISortIndex
,
KeywordIndex
,
1
)
verifyClass
(
IUniqueValueIndex
,
KeywordIndex
,
1
)
def
testAddObjectWOKeywords
(
self
):
...
...
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
adbd86c9
...
...
@@ -30,7 +30,6 @@ from Products.PluginIndexes import PluggableIndex
from
Products.PluginIndexes.common
import
safe_callable
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.interfaces
import
IPathIndex
from
Products.PluginIndexes.interfaces
import
IUniqueValueIndex
_marker
=
[]
LOG
=
getLogger
(
'Zope.PathIndex'
)
...
...
@@ -53,7 +52,7 @@ class PathIndex(Persistent, SimpleItem):
"""
__implements__
=
(
PluggableIndex
.
UniqueValueIndex
,)
implements
(
IPathIndex
,
IUniqueValueIndex
)
implements
(
IPathIndex
)
meta_type
=
"PathIndex"
...
...
lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
View file @
adbd86c9
...
...
@@ -75,7 +75,7 @@ class PathIndexTests(unittest.TestCase):
from
zope.interface.verify
import
verifyClass
verifyClass
(
IPathIndex
,
PathIndex
)
verifyClass
(
IUniqueValueIndex
,
PathIndex
)
verifyClass
(
IUniqueValueIndex
,
PathIndex
,
1
)
def
testEmpty
(
self
):
self
.
assertEqual
(
self
.
_index
.
numObjects
()
,
0
)
...
...
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
View file @
adbd86c9
...
...
@@ -34,7 +34,6 @@ from Products.PluginIndexes import PluggableIndex
from
Products.PluginIndexes.common
import
safe_callable
from
Products.PluginIndexes.common.ResultList
import
ResultList
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.PluginIndexes.interfaces
import
ITextIndex
from
Lexicon
import
Lexicon
...
...
@@ -78,7 +77,7 @@ class TextIndex(Persistent, Implicit, SimpleItem):
"""
__implements__
=
(
PluggableIndex
.
PluggableIndexInterface
,)
implements
(
ITextIndex
,
IPluggableIndex
)
implements
(
ITextIndex
)
meta_type
=
'TextIndex'
...
...
lib/python/Products/PluginIndexes/TextIndex/tests/testTextIndex.py
View file @
adbd86c9
...
...
@@ -92,7 +92,7 @@ class Tests(unittest.TestCase):
from
Products.PluginIndexes.TextIndex.TextIndex
import
TextIndex
from
zope.interface.verify
import
verifyClass
verifyClass
(
IPluggableIndex
,
TextIndex
)
verifyClass
(
IPluggableIndex
,
TextIndex
,
1
)
verifyClass
(
ITextIndex
,
TextIndex
)
def
test_SimpleAddDelete
(
self
):
...
...
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
View file @
adbd86c9
...
...
@@ -25,7 +25,6 @@ from zope.interface import implements
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.PluginIndexes.interfaces
import
ITopicIndex
import
FilteredSet
...
...
@@ -43,7 +42,7 @@ class TopicIndex(Persistent, SimpleItem):
"""
__implements__
=
(
PluggableIndex
.
PluggableIndexInterface
,)
implements
(
ITopicIndex
,
IPluggableIndex
)
implements
(
ITopicIndex
)
meta_type
=
"TopicIndex"
query_options
=
(
'query'
,
'operator'
)
...
...
lib/python/Products/PluginIndexes/TopicIndex/tests/testTopicIndex.py
View file @
adbd86c9
...
...
@@ -71,7 +71,7 @@ class TestTopicIndex(TestBase):
from
zope.interface.verify
import
verifyClass
verifyClass
(
ITopicIndex
,
TopicIndex
)
verifyClass
(
IPluggableIndex
,
TopicIndex
)
verifyClass
(
IPluggableIndex
,
TopicIndex
,
1
)
def
testOr
(
self
):
self
.
_searchOr
(
'doc1'
,[
1
,
2
])
...
...
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
adbd86c9
...
...
@@ -24,14 +24,10 @@ from BTrees.IOBTree import IOBTree
import
BTrees.Length
from
BTrees.OOBTree
import
OOBTree
from
OFS.SimpleItem
import
SimpleItem
from
zope.interface
import
implements
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common
import
safe_callable
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.PluginIndexes.interfaces
import
ISortIndex
from
Products.PluginIndexes.interfaces
import
IUniqueValueIndex
_marker
=
[]
LOG
=
getLogger
(
'Zope.UnIndex'
)
...
...
@@ -44,7 +40,6 @@ class UnIndex(SimpleItem):
__implements__
=
(
PluggableIndex
.
UniqueValueIndex
,
PluggableIndex
.
SortIndex
)
implements
(
IPluggableIndex
,
IUniqueValueIndex
,
ISortIndex
)
def
__init__
(
self
,
id
,
ignore_ex
=
None
,
call_methods
=
None
,
extra
=
None
,
caller
=
None
):
...
...
lib/python/Products/ZCTextIndex/ZCTextIndex.py
View file @
adbd86c9
...
...
@@ -31,7 +31,6 @@ from Products.PluginIndexes.common.PluggableIndex import \
PluggableIndexInterface
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.common
import
safe_callable
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.ZCTextIndex.ILexicon
import
ILexicon
from
Products.ZCTextIndex.Lexicon
import
\
...
...
@@ -55,7 +54,7 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
"""
__implements__
=
PluggableIndexInterface
implements
(
IZCTextIndex
,
IPluggableIndex
)
implements
(
IZCTextIndex
)
## Magic class attributes ##
...
...
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
View file @
adbd86c9
...
...
@@ -267,7 +267,7 @@ class CosineIndexTests(ZCIndexTestsBase, testIndex.CosineIndexTest):
from Products.ZCTextIndex.interfaces import IZCTextIndex
from zope.interface.verify import verifyClass
verifyClass(IPluggableIndex, ZCTextIndex)
verifyClass(IPluggableIndex, ZCTextIndex
, 1
)
verifyClass(IZCTextIndex, ZCTextIndex)
def testRanking(self):
...
...
lib/python/Products/ZCatalog/ZCatalog.py
View file @
adbd86c9
...
...
@@ -37,10 +37,8 @@ from Products.PluginIndexes.common.PluggableIndex \
import
PluggableIndexInterface
from
Products.PluginIndexes.TextIndex
import
Splitter
from
zLOG
import
LOG
from
zope.interface
import
implements
from
Catalog
import
Catalog
,
CatalogError
from
interfaces
import
IZCatalog
as
z3IZCatalog
from
IZCatalog
import
IZCatalog
as
z2IZCatalog
from
ProgressHandler
import
ZLogHandler
from
ZCatalogIndexes
import
ZCatalogIndexes
...
...
@@ -83,7 +81,6 @@ class ZCatalog(Folder, Persistent, Implicit):
"""
__implements__
=
z2IZCatalog
implements
(
z3IZCatalog
)
meta_type
=
"ZCatalog"
icon
=
'misc_/ZCatalog/ZCatalog.gif'
...
...
lib/python/Products/ZCatalog/tests/testCatalog.py
View file @
adbd86c9
...
...
@@ -193,7 +193,7 @@ class TestZCatalog(unittest.TestCase):
from
Products.ZCatalog.ZCatalog
import
ZCatalog
from
zope.interface.verify
import
verifyClass
verifyClass
(
IZCatalog
,
ZCatalog
)
verifyClass
(
IZCatalog
,
ZCatalog
,
1
)
def
testGetMetadataForUID
(
self
):
testNum
=
str
(
self
.
upper
-
3
)
# as good as any..
...
...
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