[z3-five] Re: How the hell do I debug assert _context.stack[-1].context is context

Philipp von Weitershausen philipp at weitershausen.de
Tue May 2 19:00:42 CEST 2006


Martin Aspeli wrote:
> Hi guys,
> 
> We're diving into Z3/Five very seriously for the future Plone 3.0
> release, and mostly it's proving a great benefit. However, I have one
> recurring problem (that I'm sure I'm not alone about).
> 
> Products/CMFPlone/configure.zcml includes an <include package=".browser"
> />. This in turn has an <include package=".contentmenu" /> (not in svn
> yet, but you get the idea - I doubt the second include makes any
> difference anyway).
> 
> This file references interfaces (for=".interfaces.IFooBar"), classes
> (class=".menu.ActionsMenu") etc. If there are any errors in that file -
> if I refer to an interface that doesn't exist, for example, or if there
> are syntax errors or run-time errors reading in the modules .interfaces
> or .menu, I get this:
> 

...

>     ZopeTestCase.installProduct('Five')

Bad, bad boy. Bad, bad, bad, bad, bad, bad... You get the idea :)

I'm not sure that this is the cause of your problems, but I wouldn't be
surprised. Other than that, I've *never* seen this error. If you can put
together a small test case (NOT Plone) that demonstrates this weird
error (could be a product with some failing imports, perhaps), I'd be
happy to take a look at it.

Philipp



More information about the z3-five mailing list