[Zope] Permissions and roles
Dieter Maurer
dieter@handshake.de
Sat, 25 Aug 2001 00:06:02 +0200 (CEST)
Todd Loomis writes:
> I'm trying to set roles and permissions to folders as they are created by
> the users the a form. However I get this error:
>
> Error Type: TypeError
> Error Value: too many arguments; expected 5, got 6
>
> Here's my code, can anybody assist me?
>
> <dtml-if expr="_.SecurityCheckPermission('Add Folders', this())">
> <dtml-with "folders">
> <dtml-call
> expr="manage_addFolder(id=REQUEST['FolderName'], title=REQUEST['FolderName'])">
> </dtml-with>
> <dtml-with "REQUEST['FolderName']">
> <dtml-call "manage_addProperty('View','Access contents
> information',['PAO','Manager'],1,REQUEST)">
You want to set permissions....
Why do you use "manage_addProperty"...
You call it with too many arguments....
Dieter