<br>



<p class="MsoNormal">Ok. Thanx. But why is it like this? I imagine that deleting an
object in a folder where I do not have permission to delete every object, or
the folder itself, is a quite common task. Using the manage_delObjects and a
proxy really feels like I'm fighting the zope security instead of getting
support by it.&nbsp;</p>

<p class="MsoNormal">Or am I thinking wrong in the first place? What I really
want to do is letting users answer a question object and the answers should be
stored somewhere. A user must later be able to change or remove his answer, but
of course not the answers of any other user. I place all answers objects
belonging to a certain question in one folder, and I have the previously
mentioned situation. </p>



<p class="MsoNormal">I know it is not that much of a problem to use a proxy, but
if I can change my design in some way so can avoid the proxy I imagine that
would be better. </p>

/Erik<br><br><div><span class="gmail_quote">On 4/18/06, <b class="gmail_sendername">Andreas Jung</b> &lt;<a href="mailto:lists@zopyx.com">lists@zopyx.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 18. April 2006 14:15:48 +0200 Erik Billing &lt;<a href="mailto:erik@ekhagen.org">erik@ekhagen.org</a>&gt; wrote:<br><br>&gt; I want to create a python script that deletes a specific file from a<br>&gt; folder. For now, the user who is calling the script does not have the
<br>&gt; Delete objects permission on the folder, only the file which he should be<br>&gt; able to delete. I have previously used the delObjects method on the<br>&gt; folder to remove the file, but this requires the Delete obejcts
<br>&gt; permission on the folder itself.<br><br>folder.manage_delObjects()&nbsp;&nbsp;is the only API method you should use.<br>If your script needs additional permissions you must give the script<br>the proxy role Manager.<br><br>
-aj<br><br>--<br>ZOPYX Ltd. &amp; Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany<br>Web: <a href="http://www.zopyx.com">www.zopyx.com</a> - Email: <a href="mailto:info@zopyx.com">info@zopyx.com</a> - Phone +49 - 7071 - 793376
<br>E-Publishing, Python, Zope &amp; Plone development, Consulting<br><br><br></blockquote></div><br>