20 Jun
2001
20 Jun
'01
5:18 p.m.
Dirksen writes:
I'm developing a Zope product myContainer. It has a traverse hook like this: def __bobo_traverse__(self, REQUEST, name): return MyObj(name) ... But when I visit this as the Manager: http://localhost/myContainer/someObj/manage_workspace
Zope throws out an authorization box. I have to log in as emergency super user to be able to visit any methods prefixed as 'manage_' under someObj. Zope's security subsystem requires Acquisition to work.
Derive your class from either "Acquisition.Explicit" or "Acquisition.Implicit". Use "return MyObj(name).__of__(self)" Dieter