[Zope] Adding a zclass based product to a folder programmatically

Kevin Dangoor kid@kendermedia.com
Fri, 30 Jul 1999 10:52:00 -0400


Hi, Phil

    This sounds like a job for the "owner" role. My take on it is this: you
can have a method (DTML or External) with an appropriate Proxy role to
create the ZClass instance for the person. If you set the permissions such
that the ZClass instances can be modified by someone with "Owner" role, then
the users should be able to modify their homepage and not anyone elses.

Kevin

-----Original Message-----
From: Phil Harris <phil@philh.org>
To: zope@zope.org <zope@zope.org>
Date: Friday, July 30, 1999 6:44 AM
Subject: [Zope] Adding a zclass based product to a folder programmatically


>Hi all,
>
>I have created some zclass based products, Homepage and hpindex_html.
>
>When a user comes to the site I want to allow them to create a homepage
>product, I was hoping to do this via an external method, since I don't want
>them to have author rights on any other folder except the one created for
>them.
>
>So my question is how would this be done.
>
>I have a handle on creating default documents/ user folders etc from a
>products add form, but this has me stumped.
>
>TIA
>
>Phil
>phil@philh.org
>
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(To receive general Zope announcements, see:
>http://www.zope.org/mailman/listinfo/zope-announce
>
>For developer-specific issues, zope-dev@zope.org -
>http://www.zope.org/mailman/listinfo/zope-dev )
>