[Zope3-Users] Problem with SetIndex (from zc.catalog)

Thierry FLORAC tflorac at ulthar.net
Mon Mar 20 17:14:54 EST 2006


On Mon, 2006-03-20 at 10:16 -0500, Stephan Richter wrote:
> On Wednesday 15 March 2006 17:45, Thierry FLORAC wrote:
> >         TraversalError: (<zc.catalog.catalogindex.SetIndex object at
> > 0xb46bfd2c>, 'documentCount')
> >
> >
> > "documentCount" seems to be defined into the "SetIndex" class, so I
> > don't understand this error...
> 
> Well, by default attributes are not traversable, so that the following does 
> not work:
> 
> object/attrname
> 
> But this should work:
> 
> object/++attribute++attrname
> 
> SchoolTool has developed a clever dynamic Traversal mechanism that allows you 
> to do the first case:
> 
> http://source.schooltool.org/viewcvs/trunk/schooltool/src/schooltool/traverser/

But I'm just trying to use a "simple" (not subclassed) SetIndex, and
then to access my catalog "Advanced" management page...!
I don't build any specific template for this.

Should I build any specific SetIndex subclass ? Or define a specific
template ??

Thanks,
Thierry



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Zope3-users mailing list