Rob Miller <[email protected]> writes:

> Mark Phillips wrote:
>> Is there a simple way to change the ownership of a piece of content?
>> I have a site with scores of members who created several
>> remember/membrane logins. I would like to consolidate the content
>> for each user into one account and then delete the unnecessary
>> accounts. However, I need a way to change the ownership of the
>> content I move. There is a new experimental product
>> (http://plone.org/products/iw-memberreplace/) available, but only
>> for Plone 3.x. I am running on Plone 2.5. Thanks for any suggestions
>> you may have!
>
> this isn't actually a membrane/remember question, the mechanisms for
> changing content ownership are the same regardless of whether or not
> you have membrane and/or remember installed.
>
> however, since you happened to ask here, there is some code in
> remember that may be helpful for you.  for remember to function
> correctly, it is very important that the member object (which is just
> a piece of content) be owned by the user that the object represents.
> when a user is created by a site admin, or if a user ever changes
> his/her username, however, the ownership will be wrong, so there's a
> "fixOwnership" method on the member object to fix up the ownership:
>
> http://tinyurl.com/m6yrta#L109
>
> there's some extra code in this method that you won't care about, but
> it includes everything you need... changing the local roles so that
> the user has Owner privileges, and setting the owner itself.
>
> hope this helps,

I think Plone's ownership_form will do this for you with a somewhat
friendly UI on a per-content item basis.  So if your users content is
separated into a small number of folders which contain all of the
content which needs its owner changed and only content which needs its
owner changed, then this might be a quick answer.  If, however, the
content owned by the consolidated users is intermingled with other
content then this won't help much and you'll have to write your own.

Ross



--
Archive: 
http://www.coactivate.org/projects/remember/lists/remember/archive/2009/09/1253557682812
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to