[Checkins] SVN: Grokstar/trunk/src/grokstar/blog.py Make the
catalog indexes work properly.
Martijn Faassen
faassen at infrae.com
Wed May 30 16:03:33 EDT 2007
Log message for revision 76014:
Make the catalog indexes work properly.
Changed:
U Grokstar/trunk/src/grokstar/blog.py
-=-
Modified: Grokstar/trunk/src/grokstar/blog.py
===================================================================
--- Grokstar/trunk/src/grokstar/blog.py 2007-05-30 20:02:44 UTC (rev 76013)
+++ Grokstar/trunk/src/grokstar/blog.py 2007-05-30 20:03:32 UTC (rev 76014)
@@ -22,20 +22,20 @@
super(Blog, self).__init__()
self['entries'] = Entries()
-class BlogIndexes(grok.Indexes):
+class EntryIndexes(grok.Indexes):
grok.site(Blog)
grok.context(IEntry)
grok.name('entry_catalog')
- published = Field(attribute='published')
+ published = index.Field()
-class BlogIndexes(grok.Indexes):
+class WorkflowIndexes(grok.Indexes):
grok.site(Blog)
grok.context(IWorkflowState)
grok.name('entry_catalog')
- workflow_state = Field(attribute='getState')
- workflow_id = Field(attribute='getId')
+ workflow_state = index.Field(attribute='getState')
+ workflow_id = index.Field(attribute='getId')
class Entries(grok.Container):
pass
More information about the Checkins
mailing list