[Zope] ZClass permissions

Cornelis J. de Brabander brabander@fsw.LeidenUniv.nl
Tue, 04 Jan 2000 10:10:11 +0100


I think you'll need to give the CourseDocumentClass_add method a proxy role
of manager
cb
-----Oorspronkelijk bericht-----
Van: Darcy Clark <darcyc@engin.umich.edu>
Aan: zope@zope.org <zope@zope.org>
Datum: dinsdag 4 januari 2000 1:04
Onderwerp: [Zope] ZClass permissions


>I wrote a ZClass that uploads files and sets several properties for the
>file, which I am running 'programmatically' with the following code :
>
><dtml-with "PARENTS[1].files">
> <dtml-with "manage_addProduct['CourseDocument']">
> <dtml-call "CourseDocumentClass_add(_.None, _, NoRedir=1)">
> </dtml-with>
></dtml-with>
>
>this code works only when I am logged in as Superuser.....I created a
>user-defined role called 'Editor' and set all of the permissions that I
>thought would be necessary for this role (e.g. Upload Files, etc...) but
>I get an error :
>
>"You are not authorized to access CourseDocumentClass"
>
>Is there a permission setting somewhere that I need to enable for
>Editors to be able to use this class ?
>
>thanks for any help,
>
>Darcy
>--
>---------------------------------------------------
>Ph: (734) 764 3377
>Email: darcyc@engin.umich.edu
>URL: http://www-personal.engin.umich.edu/~darcyc/
>---------------------------------------------------
>'If you're not part of the solution, you're part of the precipitate'
>..... Steven Wright
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>