Personal tools
You are here: Home Lists ZPUG DC List Archives 2005 2005-07 Archetype question / David Diskin <DAVID.DISKIN@VERIZON.NET>
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

Archetype question / David Diskin <DAVID.DISKIN@VERIZON.NET>

Archetype question
David Diskin <DAVID.DISKIN(at)VERIZON.NET>
2005-07-10 22:26:18 [ FULL ]
I have created an Archtype called Tickets for member registration for  
an event.  In the schema I define 2 schemata - 'Staff Only'  and  
'Member Ticket Request'.  I want to hide the 'Staff Only' schemata  
for non staff members, but I have not figured out how to accomplish  
this.

For each field of the 'Staff Only' schemata, I have tried setting  
read_permission and write_permission to a permission available only  
for staff members, but when a non staff member tries to add a Ticket,  
he gets a "Insufficient Privileges" error.

Can anyone suggest a way to do what I want?

Thanks very much.

David



  ==============================
David Diskin, david.diskin(at)verizon.net

Re: Archetype question - more info / David Diskin <david.diskin@verizon.net>

Re: Archetype question - more info
David Diskin <david.diskin(at)verizon.net>
2005-07-11 14:19:53 [ FULL ]
Additional information:

The Staff Only schemata contains the short name (id).  If i don't set  
any read or write permissions on the id field (which I had done with:
schema['id'].read_permission=CMFCorePermissions.ListFolderContents
schema['id'].write_permission=CMFCorePermissions.ListFolderContents)

then, the 'Staff Only' schemata is visibile to non staff members, but  
only the id field is visible.  I want to hide the id field for non  
staff members also.  I don't know how to make it visible for staff  
but invisible for anyone else.

David

On Jul 10, 2005, at 11:27 PM, David Diskin wrote:
[...]

==============================
David Diskin, david.diskin(at)verizon.net
Attachments: 
text.html text/html - 6773 Bytes

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: