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 <[EMAIL PROTECTED] > wrote:


--On 2. August 2005 10:49:59 +0300 Evrim Ozcelik <[EMAIL PROTECTED]>
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
_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to