[Zope-CMF] I have got 1/2 hour to figure out.....

marc lindahl marc@bowery.com
Fri, 21 Sep 2001 14:00:19 -0400


You'll have to modify how the document is created, either at the form level
or python level.  At the python level, manage_permission() is the API you
want, e.g.:

object.manage_permission('View', ['Anonymous', 'Member',
'Owner','Manager','Reviewer'], 1)

If all else fails, read the source :)

> From: "Rustad, Aaron" <ARustad@Online-can.com>
> Date: Fri, 21 Sep 2001 11:50:41 -0600
> To: "'Zope-CMF@zope.org'" <Zope-CMF@zope.org>
> Subject: [Zope-CMF] I have got 1/2 hour to figure out.....
> 
> How do I modify the default permissions of an object at creation time?
> 
> What I need to be able to do is have all the "Aquire Permission Settings"
> set to true when I insert a documents through the CMF.
> 
> By default, it leaves the "View" object unchecked
> 
> Thanks for your (Hopefully quick) response!!!
> Aaron.
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests