[z3-five] debugging "missing" view

Brian Sutherland jinty at web.de
Mon Jun 4 12:09:41 CEST 2007


On Mon, Jun 04, 2007 at 07:45:37AM +0100, Chris Withers wrote:
> Hi All,
> 
> I have a "properties" view for user objects which works fine on my dev 
> zope instance. However, when I move the software to my customer's 
> staging instance, the view appears to have vanished and I get an 
> exception that looks a bit like:
> 
>    Module Products.PageTemplates.Expressions, line 127, in _eval
>     - __traceback_info__: user
>    Module Products.PageTemplates.Expressions, line 286, in 
> restrictedTraverse
>     - __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.

> 
> (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. 

> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk
> 
> _______________________________________________
> z3-five mailing list
> z3-five at codespeak.net
> http://codespeak.net/mailman/listinfo/z3-five

-- 
Brian Sutherland


More information about the z3-five mailing list