<div><span class="gmail_quote"></span>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:<br>
<br>
1- I can control the permission in the zope python script script<br>
<br>
user = getAuthenticatedUser() <br>
if(user has manager role)<br>
&nbsp; ...<br>
else:<br>
&nbsp; go to login<br>
<br>
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)<br>
<br>
Thanks,<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_10576d6794f1b202_1"><br>
<br><br><div><span class="gmail_quote">On 8/2/05, <b class="gmail_sendername">Andreas Jung</b> &lt;<a href="mailto:lists@andreas-jung.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lists@andreas-jung.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>--On 2. August 2005 10:49:59 +0300 Evrim Ozcelik &lt;<a href="mailto:evrimozcelik@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">evrimozcelik@gmail.com</a>&gt;<br>wrote:<br><br>
&gt; Is there a way to set default permissions to files (python scripts, page
<br>&gt; templates, etc. in the product skins directory) that can be viewed by<br>&gt; Filesystem Directory View. Maybe there is a special file like .metadata<br>&gt;<br><br>That's a strange question. If you put scripts or whatever inside a
<br>directory configured as filesystem dirview then these files should be<br>readable by the Zope server process. I don't know where file permissions<br>are relevant here. The files must be readable...point.<br><br>-aj<br>

<br></blockquote></div><br><br clear="all"><br></span></div><span class="sg">-- <br>Evrim Özçelik<br>Computer Engineer<br>Python&amp;Zope Specialist

</span></blockquote></div><br><br clear="all"><br>-- <br>Evrim Özçelik<br>Computer Engineer<br>Python&amp;Zope Specialist