[Grok-dev] Derived interfaces and indexing

Jeroen Michiel jmichiel at yahoo.com
Fri Jul 31 09:31:16 EDT 2009


If you do this:

class IMainInterface(Interface):
   name=schema.TextLine(title=u'Name')

class IDerivedInterface(IMainInterface):
   pass

class Derived(grok.Model):
    grok.implements(IDerivedInterface)


class MainIndexes(grok.Indexes):
    grok.site(MyApp)
    grok.context(IMainInterface)
    grok.name('main_catalog')
    
    name = grok.index.Field()   

Objects of class 'Derived' should be indexed by MainIndexes, right?

Apparently, in my app this doesn't seem to happen, but I don't have a clue
why not...
Does anybody have any ideas?
-- 
View this message in context: http://www.nabble.com/Derived-interfaces-and-indexing-tp24756457p24756457.html
Sent from the Grok mailing list archive at Nabble.com.



More information about the Grok-dev mailing list