[z3-five] debugging "missing" view
Chris Withers
chris at simplistix.co.uk
Tue Jun 5 10:39:51 CEST 2007
Brian Sutherland wrote:
> On Mon, Jun 04, 2007 at 07:45:37AM +0100, Chris Withers wrote:
>> - __traceback_info__: {'path': ['@@properties'],
>> 'TraversalRequestNameStack': []}
>> Module Products.Five.traversable, line 115, in __bobo_traverse__
>> AttributeError: @@properties
>>
>> How can I debug why this view is not being found on one Zope instance
>> while it is being found in another?
>
> I normally resort to using the python debugger for these things because
> Five is so good at hiding the real problem.
Yes, that is kind of sad :-S
Do you have any particular recommendations as to where to drop a pdb or two?
>> (this is Five as shipped with Zope 2.9.something)
>
> On these versions I find that it's normally a missing five:traversable
> statement on some global class, in my case normally OFS.Folder.
Nope, that's in the Product's configure.zcml:
<five:traversable class="AccessControl.User.BasicUser"/>
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the z3-five
mailing list