[Zope] Howto prevent deletion of acl_users
    Max M 
    maxm at mxm.dk
       
    Mon Dec 15 06:41:02 EST 2003
    
    
  
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
    
    
More information about the Zope
mailing list