Re: [Zope-CMF] script to update permissions

2007-08-02 Thread Charlie Clark


Am 02.08.2007 um 23:17 schrieb David Chelimsky:


I want to write a script that will traverse a directory tree and
update the View permission on any Folder that meets certain criteria.

Suggestions?


This might sound trite but walking a folder hierarchy shouldn't be  
difficult and assuming you give the Script a manager proxy role it  
shouldn't have any trouble adjusting permissions.


However, this might not be what you want. Assuming the folders aquire  
the permissions of the parent, might it not be simpler to adjust the  
permissions of the highest level folder? This would certainly be the  
most manageable.


Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] script to update permissions

2007-08-02 Thread Paul Winkler
You could use the ZopeFind method, which folders inherit from
OFS.FindSupport.FindSupport:

http://svn.zope.org/Zope/trunk/lib/python/OFS/FindSupport.py?rev=40300&view=markup


On Thu, Aug 02, 2007 at 04:17:43PM -0500, David Chelimsky wrote:
> I want to write a script that will traverse a directory tree and
> update the View permission on any Folder that meets certain criteria.
> 
> Suggestions?
> ___
> Zope-CMF maillist  -  Zope-CMF@lists.zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
> 
> See http://collector.zope.org/CMF for bug reports and feature requests

-- 

Paul Winkler
http://www.slinkp.com
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] script to update permissions

2007-08-02 Thread David Chelimsky
I want to write a script that will traverse a directory tree and
update the View permission on any Folder that meets certain criteria.

Suggestions?
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests