[Zope] Re: Howto prevent deletion of acl_users

Florian Schulze florian.proff.schulze at gmx.net
Mon Dec 15 08:22:19 EST 2003


Thanks for this tip!

I was able to write an external method to set that attribute and it works 
fine.

Thanks and regards,
Florian Schulze



On Mon, 15 Dec 2003 12:41:02 +0100, Max M <maxm at mxm.dk> wrote:

> Florian Schulze wrote:
>
>  > Hi!
>  >
>  > How can I prevent people with FTP access from deleting their acl_users
>  > folder?
>
>
> If you set an attribute called "_reserved_names" on a "folder" object, 
> you can prevent deletion.
>
>      # The userfolder cannot be deleted
>      folder_obj._reserved_names = ('acl_users',)
>
> I don't think you can do it from a pythonscript, so you probably need an 
> external method.
>
> It would have been easier if there was a method for setting them, but 
> there ain't.
>
>
>
> regards Max M
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/




More information about the Zope mailing list