Re: [Zope] Change owner from external app

2006-03-01 Thread Dieter Maurer
Marek 'MMx' Ludha wrote at 2006-3-1 17:32 +0100:
>I am writing an external application and I need to modify owner and
>permissions of zope files from that app. I thought about using HTTP
>object publishing or XML-RPC, so I checked documentation at
>http://www.plope.com/Books/2_7Edition/AppendixB.stx#2-45 but I can't
>find any method to deal with owner/permissions. Is there really no way
>to do this or am I just missing something?

You know that you can change ownership (be aware that there are
two completely different types of ownership!) and permissions
via the ZMI. Looking at respective the ZMI source will
tell you which methods are used (this is a general approach
for anything that can be done in the ZMI).

In your special case, you can look at the methods defined
in "AccessControl/Owned.py" (executable ownership control),
"AccessControl/Role.py" (local role control, among others the
local role "Owner"; and role permission mapping).

-- 
Dieter
___
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 )


Re: [Zope] Change owner from external app

2006-03-01 Thread Stefan H. Holek
*Everything* you can do in the ZMI, you can also do from code. Most  
of it even via XML-RPC. In case a method you want does not publish  
nicely to XML-RPC, write a helper script in Zope and RPC that one.


Also, install DocFinderTab for all the API doc needs you may have.

Stefan


On 1. Mär 2006, at 17:32, Marek 'MMx' Ludha wrote:


Hi.

I am writing an external application and I need to modify owner and
permissions of zope files from that app. I thought about using HTTP
object publishing or XML-RPC, so I checked documentation at
http://www.plope.com/Books/2_7Edition/AppendixB.stx#2-45 but I can't
find any method to deal with owner/permissions. Is there really no way
to do this or am I just missing something?
Thanks in advance.

Marek Ludha


--
Anything that happens, happens.  --Douglas Adams


___
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 )


[Zope] Change owner from external app

2006-03-01 Thread Marek 'MMx' Ludha
Hi.

I am writing an external application and I need to modify owner and
permissions of zope files from that app. I thought about using HTTP
object publishing or XML-RPC, so I checked documentation at
http://www.plope.com/Books/2_7Edition/AppendixB.stx#2-45 but I can't
find any method to deal with owner/permissions. Is there really no way
to do this or am I just missing something?
Thanks in advance.

Marek Ludha
___
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 )