[Zope] Filesystem Files Permissions

Evrim Ozcelik evrimozcelik at gmail.com
Tue Aug 2 06:58:40 EDT 2005


I mean that I want to set files zope permissions. For example, i have a zope 
python script which must only be executed by users that have manager role. 
In order to do this i have 2 alternatives:

1- I can control the permission in the zope python script script

user = getAuthenticatedUser() 
if(user has manager role)
...
else:
go to login

2- I can put a special file like .metadata file and set the python script 
zope permissions. (I don't know how can i do this)

Thanks,


> 
> 
> On 8/2/05, Andreas Jung <lists at andreas-jung.com> wrote:
> > 
> > 
> > 
> > --On 2. August 2005 10:49:59 +0300 Evrim Ozcelik <evrimozcelik at gmail.com
> > >
> > wrote:
> > 
> > > Is there a way to set default permissions to files (python scripts, 
> > page 
> > > templates, etc. in the product skins directory) that can be viewed by
> > > Filesystem Directory View. Maybe there is a special file like 
> > .metadata
> > >
> > 
> > That's a strange question. If you put scripts or whatever inside a 
> > directory configured as filesystem dirview then these files should be
> > readable by the Zope server process. I don't know where file permissions
> > are relevant here. The files must be readable...point.
> > 
> > -aj
> > 
> > 
> 
> 
> -- 
> Evrim Özçelik
> Computer Engineer
> Python&Zope Specialist 




-- 
Evrim Özçelik
Computer Engineer
Python&Zope Specialist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050802/863e7950/attachment.htm


More information about the Zope mailing list