Log in |
ZClasses, ObjectManagers and containers: avoiding the resource not found bugWhen trying to implement ZClasses that contain other ZClasses in Zope 2, you'll rapidly run into a bug in which you can't create an object inside a container because whenever you click the Add button, a "resource not found" error occurs. Worse, semi-random clicking might fix the problem without you knowing why. Spending a few hours trawling the mailing lists will give you the solution, but to save time -- hopefully this will be indexed and you'll trip over it when running some of the more obvious keywords through the zope.org search engine -- here it is:
The key is step 5. That's the one you might do by accident. Full credit to: Nick Garcia for the solution. All I'm doing here is making it into a How-To. |