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

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 20 10:16:36 EST 2006


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/

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list