On Mon, 26 Jun 2000, Lalo Martins wrote:
I had the same problem ("Contents" tab not appearing) and it didn't even occur to me that it might be a Product (because that happened before the update on Products was released).
After much munching trough the code, I made the simple change (attached) to lib/python/app/Management.py based on the warnings given by that same file and lib/python/AccessControl/ZopeSecurityPolicy.py - and now my Zope 2.2 is working just fine.
I don't know whether the problem is in a Product or Management.py, but my "fix" makes sense to me...
Well, your fix fixed the "a_" problem, but not the permissions problem (I don't get prompted for a login when accessing /manage_main). I haven't gotten too far on my testing yet, but I have shown that a zero length __init__.py file in the EMarket product directory still yeilds the problem. I don't understand the product import process, so I don't know what else does get loaded with a zero length __init__ file. I'll do more experimenting Wednesday... --RDM ---------------------------------------------------------------------- --- Management.py.orig Thu Jun 22 01:18:59 2000 +++ Management.py Thu Jun 22 01:48:48 2000 @@ -127,7 +127,7 @@ if o is None: continue try: - if validate(value=o): + if validate(container=self, value=o): result.append(d) except: if not hasattr(o, '__roles__'):