[Zope] copy support of my class broken

Dieter Maurer dieter@handshake.de
Fri, 4 Jul 2003 21:20:15 +0200


Steffen Hausmann wrote at 2003-7-1 21:29 +0200:
 > ...
 > Error Type: Unauthorized
 > Error Value: You are not allowed to access 20030624142142 in this context
 > 
 >     * Module ZPublisher.Publish, line 98, in publish
 >     * Module ZPublisher.mapply, line 88, in mapply
 >     * Module ZPublisher.Publish, line 39, in call_object
 >     * Module OFS.CopySupport, line 146, in manage_pasteObjects
 >     * Module OFS.CopySupport, line 347, in _verifyObjectPaste
 > 
 > I've installed the VerboseSecurity product, but it didn't take me much
 > further.
 > 
 > Error Type: Unauthorized
 > Error Value: 20030624142142 -- The object is marked as private. Access to None of (Berichtverwaltung instance at 8b01610), acquired through None, denied.
 > 
 > Any ideas why I can't paste my object.

Looking at line 347 of "OFS.Copysupport" and carefully reading
the "VerboseSecurity" message, it appears as if the
"Berichtverwaltung" "object" were private.
It probably lacks a "security.declareObjectProtected(...)" declaration.


Dieter