[Zope] Change Ownership

Phil Harris phil.harris@zope.co.uk
Thu, 13 Sep 2001 16:39:19 +0100


This is how I do it:

def chown(self,user=''):
 user=self.acl_users.getUserById(user)
 self.changeOwnership(user=user,recursive=1)
 return 'Done'

put this in as an external method and call it on the object in question
(either singular or a collection).

http://myserver/index_html/chown?user=philh

for example.

hth

Phil



----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: <zope@zope.org>
Sent: Thursday, September 13, 2001 4:29 PM
Subject: [Zope] Change Ownership


> Hi,
>
> Can someone explain for a dummy like me how I'm supposed to change the
owner of
> an object?
> I always assumed it'd be on the Ownership tab, but while that shows you
who the
> owner of an object is, it doesn't let you change it.
>
> Basically, a the object is owned by a summer student who has since left,
my only
> option now is to re-create a user object for them with a garbled password,
which
> is majorly sucky!
>
> cheers,
>
> Chris
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )