Commit 6672cc4f authored by Michel Pelletier's avatar Michel Pelletier

Added missing columns from record

parent f0884090
......@@ -124,6 +124,8 @@ class Catalog(Item):
('subject', 'TextIndex', 's', None),
('description', 'TextIndex', 's', None),
('date', 'FieldIndex', 'd', None),
('creator', 'TextIndex', 's', 1),
('summary', 'TextIndex', 's', 1),
('reviewed', 'FieldIndex', 'i', None),
]
......@@ -142,11 +144,6 @@ class Catalog(Item):
self._ztable._data.setOrphanIndex('text_content', 'TextIndex',
call_methods=1)
self._ztable._data.addComputedField('modified_since',
'(_.DateTime() - 1)',
index_type='FieldIndex',
type='d')
self._ztable.update_database_schema(uindex, utype, call)
......@@ -259,8 +256,10 @@ class Catalog(Item):
record['subject'] = obj.subject
record['description'] = obj.description
record['summary'] = obj.summary
record['summary'] = obj.summary()
record['reviewed'] = obj.reviewed
record['date'] = obj.date
record['creator'] = obj.creator()
return record
......
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