예제 #1
0
class MammothIndexes(grok.Indexes):
    grok.site(Herd)
    grok.context(IMammoth)

    name = index.Field()
    age = index.Field()
    message = index.Text()
예제 #2
0
파일: blog.py 프로젝트: bendavis78/zope
class WorkflowIndexes(grok.Indexes):
    grok.site(Blog)
    grok.context(IWorkflowState)
    grok.name('entry_catalog')

    workflow_state = index.Field(attribute='getState')
    workflow_id = index.Field(attribute='getId')
예제 #3
0
class MammothIndexes(grok.Indexes):
    grok.context(Mammoth)
    grok.name('foo_catalog')

    name = index.Field()
    age = index.Field()
    message = index.Text()
예제 #4
0
파일: blog.py 프로젝트: bendavis78/zope
class EntryIndexes(grok.Indexes):
    grok.site(Blog)
    grok.context(IEntry)
    grok.name('entry_catalog')

    title = index.Text()
    content = index.Text()
    published = index.Field()
    categories = index.Set()
예제 #5
0
class MammothIndexes(grok.Indexes):
    grok.site(Herd)
    grok.context(IMammoth)

    name = index.Field()
    how_old = index.Field(attribute='age')
예제 #6
0
def func():
    foo = index.Field()
예제 #7
0
class MammothIndexes(grok.Indexes):
    grok.site(Herd)
    grok.context(IMammoth)

    foo = index.Field()
예제 #8
0
class MammothIndexes2(grok.Indexes):
    grok.site(Herd)
    grok.context(IMammoth2)

    name = index.Field()