[Zope] change document permissions
Dieter Maurer
dieter@handshake.de
Wed, 21 Mar 2001 22:01:44 +0100 (CET)
Peter Breuer writes:
> i want to generate a document and change permissions for that
> document without using the manage-screen.
> Generating the document worked fine - it copies a default document to
> a new generated document-object:
> <dtml-call
> "manage_addProduct['OFSP'].manage_addDTMLDocument('pre_article','Preliminary
> article',default_pre_article)">
>
> now an existing role (f. e. Owner) should be able to get 'Change DTMS
> Documents' right for that document-object.
> I assume
> <dtml-call "pre_article.manage_permission()">
I can not tell you the details....
But I would look at the (DTML) source of the management interface
that changes permissions ... and after (say) ten minutes, I would
knew how to do it....
Dieter