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
33e73b8e
Commit
33e73b8e
authored
May 11, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed date field index type
parent
3f4117bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
lib/python/Products/ZCatalog/Catalog.py
lib/python/Products/ZCatalog/Catalog.py
+9
-2
No files found.
lib/python/Products/ZCatalog/Catalog.py
View file @
33e73b8e
...
@@ -120,10 +120,10 @@ class Catalog(Item):
...
@@ -120,10 +120,10 @@ class Catalog(Item):
(
'url'
,
'FieldIndex'
,
's'
,
1
),
(
'url'
,
'FieldIndex'
,
's'
,
1
),
(
'title'
,
'TextIndex'
,
's'
,
None
),
(
'title'
,
'TextIndex'
,
's'
,
None
),
(
'meta_type'
,
'FieldIndex'
,
's'
,
None
),
(
'meta_type'
,
'FieldIndex'
,
's'
,
None
),
(
'last_modified'
,
'
Text
Index'
,
'd'
,
None
),
(
'last_modified'
,
'
Field
Index'
,
'd'
,
None
),
(
'subject'
,
'TextIndex'
,
's'
,
None
),
(
'subject'
,
'TextIndex'
,
's'
,
None
),
(
'description'
,
'TextIndex'
,
's'
,
None
),
(
'description'
,
'TextIndex'
,
's'
,
None
),
(
'date'
,
'
Text
Index'
,
'd'
,
None
),
(
'date'
,
'
Field
Index'
,
'd'
,
None
),
(
'reviewed'
,
'FieldIndex'
,
'i'
,
None
),
(
'reviewed'
,
'FieldIndex'
,
'i'
,
None
),
]
]
...
@@ -142,8 +142,14 @@ class Catalog(Item):
...
@@ -142,8 +142,14 @@ class Catalog(Item):
self
.
_ztable
.
_data
.
setOrphanIndex
(
'text_content'
,
'TextIndex'
,
self
.
_ztable
.
_data
.
setOrphanIndex
(
'text_content'
,
'TextIndex'
,
call_methods
=
1
)
call_methods
=
1
)
self
.
_ztable
.
_data
.
addComputedField
(
'modified_since'
,
'(_.DateTime() - 1)'
,
index_type
=
'FieldIndex'
,
type
=
'd'
)
self
.
_ztable
.
update_database_schema
(
uindex
,
utype
,
call
)
self
.
_ztable
.
update_database_schema
(
uindex
,
utype
,
call
)
def
searchResults
(
self
,
REQUEST
=
None
,
used
=
None
,
def
searchResults
(
self
,
REQUEST
=
None
,
used
=
None
,
query_map
=
{
query_map
=
{
type
(
regex
.
compile
(
''
)):
Query
.
Regex
,
type
(
regex
.
compile
(
''
)):
Query
.
Regex
,
...
@@ -161,6 +167,7 @@ class Catalog(Item):
...
@@ -161,6 +167,7 @@ class Catalog(Item):
__call__
=
searchResults
__call__
=
searchResults
def
uniqueValuesFor
(
self
,
id
):
def
uniqueValuesFor
(
self
,
id
):
""" return unique values for field index id """
""" return unique values for field index id """
return
apply
(
self
.
_ztable
.
uniqueValuesFor
,
(
id
,))
return
apply
(
self
.
_ztable
.
uniqueValuesFor
,
(
id
,))
...
...
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