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

Thierry FLORAC tflorac at ulthar.net
Wed Mar 15 17:45:31 EST 2006


Hi,

I'm actually using a SetIndex (as defined in "zc.catalog.catalogindex"
package).
Indexing my documents works perfectly but I still have a little
problem : when trying to get to the "Advanced" page of my catalog, a
TraversalError exception is raised : 


        2006-03-15T23:39:27 ERROR SiteError http://localhost:8080/test1/++etc++site/default/catalog/@@advanced.html
        Traceback (most recent call last):
          File "/usr/local/zope/3.2/lib/python/zope/publisher/publish.py", line 138, in publish
            result = publication.callObject(request, object)
          File "/usr/local/zope/3.2/lib/python/zope/app/publication/zopepublication.py", line 161, in callObject
            return mapply(ob, request.getPositionalArguments(), request)
          File "/usr/local/zope/3.2/lib/python/zope/publisher/publish.py", line 113, in mapply
            return debug_call(object, args)
          File "/usr/local/zope/3.2/lib/python/zope/publisher/publish.py", line 119, in debug_call
            return object(*args)
          File "/usr/local/zope/3.2/lib/python/zope/app/pagetemplate/simpleviewclass.py", line 44, in __call__
            return self.index(*args, **kw)
          File "/usr/local/zope/3.2/lib/python/zope/app/pagetemplate/viewpagetemplatefile.py", line 83, in __call__
            return self.im_func(im_self, *args, **kw)
          File "/usr/local/zope/3.2/lib/python/zope/app/pagetemplate/viewpagetemplatefile.py", line 51, in __call__
            sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
          File "/usr/local/zope/3.2/lib/python/zope/pagetemplate/pagetemplate.py", line 117, in pt_render
            strictinsert=0, sourceAnnotations=sourceAnnotations)()
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 277, in __call__
            self.interpret(self.program)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 908, in do_useMacro
            self.interpret(macro)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 538, in do_optTag_tal
            self.do_optTag(stuff)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 523, in do_optTag
            return self.no_tag(start, program)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 518, in no_tag
            self.interpret(program)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 878, in do_defineMacro
            self.interpret(macro)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 976, in do_defineSlot
            self.interpret(block)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 966, in do_defineSlot
            self.interpret(slot)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 841, in do_loop_tal
            self.interpret(block)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 352, in interpret
            handlers[opcode](self, args)
          File "/usr/local/zope/3.2/lib/python/zope/tal/talinterpreter.py", line 625, in do_insertText_tal
            text = self.engine.evaluateText(stuff[0])
          File "/usr/local/zope/3.2/lib/python/zope/app/pagetemplate/engine.py", line 101, in evaluateText
            text = self.evaluate(expr)
          File "/usr/local/zope/3.2/lib/python/zope/tales/tales.py", line 696, in evaluate
            return expression(self)
          File "/usr/local/zope/3.2/lib/python/zope/tales/expressions.py", line 205, in __call__
            return self._eval(econtext)
          File "/usr/local/zope/3.2/lib/python/zope/tales/expressions.py", line 192, in _eval
            ob = self._subexprs[-1](econtext)
          File "/usr/local/zope/3.2/lib/python/zope/tales/expressions.py", line 124, in _eval
            ob = self._traverser(ob, element, econtext)
          File "/usr/local/zope/3.2/lib/python/zope/app/pagetemplate/engine.py", line 72, in trustedZopeTraverser
            request=getattr(econtext, 'request', None))
          File "/usr/local/zope/3.2/lib/python/zope/app/traversing/adapters.py", line 124, in traverse
            curr = traversePathElement(curr, name, path, request=request)
          File "/usr/local/zope/3.2/lib/python/zope/app/traversing/adapters.py", line 177, in traversePathElement
            return traversable.traverse(nm, further_path)
          File "/usr/local/zope/3.2/lib/python/zope/app/traversing/adapters.py", line 61, in traverse
            raise TraversalError(subject, name)
        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...

Thanks for any explanation,

  Thierry


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060315/25098fa2/attachment-0001.htm


More information about the Zope3-users mailing list