[Zope] copy support of my class broken

Steffen Hausmann steffen@hausmann-family.de
Sat, 5 Jul 2003 16:49:56 +0200


On Fri, Jul 04, 2003 at 09:20:15PM +0200, Dieter Maurer wrote:
> 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.

You're right.
I didn't know that there is such a security declaration and I can't
remember having read about it in the Zope Bible.

Thanks.

MfG Steffen
-- 
Zu sagen 'Hier herrscht Freiheit' ist immer ein Irrtum oder auch eine
Lüge -- Freiheit herrscht nicht (Erich Fried)