[Zope-CMF] How to create objects for users

Jens Vagelpohl jens@zope.com
Wed, 1 Aug 2001 07:51:21 -0400


this sounds like you do not adjust object ownership after creating them. 
for an example of how to create items and then change all the bits so that 
they are owned and view/editable by someone else i suggest you take a look 
at the "createMemberArea" method in CMFCore/MembershipTool.py:

http://cvs.zope.org/cgi-bin/viewcvs.cgi/Products/CMFCore/MembershipTool.py?
rev=1.10&content-type=text/vnd.viewcvs-markup

(URL might wrap, make sure you copy and paste it into your browser in its 
entirety)

jens


On Wednesday, August 1, 2001, at 02:22 , <josh@emediatedesigns.com> wrote:

> I would like to create certain objects for users in their directory. If I
> try to create an image and give ownership to that user they can not see it
> in their directory.  If I create a "portal image" and give permissions.
> They can see it but can not view the file and can not change it.
>
> Is there a way to manually create objects for users in the manage screen 
> for
> zope that the users then can see and modify?  I would like to create some
> imagaes and file documents up front.
>
> Thanks.
>
> Josh
>