[Zope] Permissions problems
"Nico De Boer
nico@nfg.nl
Thu, 15 Nov 2001 11:12:40 +0100 (CET)
I have some problems with adding my new product into a site.
When I want to add my product in my test-folder, it's no problem. But
when I want to add my product in a website, it isn't shown in the Add
a Product list.
I think it is a problem with the Zope-permissions, but I have looked
in several source code and have made it just the same.
This is my __init__.py file:
import FormMail
def initialize(context):
try:
context.registerClass(
instance_class=FormMail.FormMail,
permission='Add MailFormulier',
constructors = (
FormMail.FormMail_Add,
FormMail.manage_FormMail_Add,
),
)
except:
import sys, traceback, string
type, val, tb = sys.exc_info()
sys.stderr.write(string.join(traceback.format_exception(type,
val,
tb),
''))
del type, val, tb
And this are my __ac_permissions:
__ac_permissions__=(
('View management screens', ('manage_main',)),
('Change permissions', ('manage_access',), ('Owner', 'Manager')),
('Change MailFormulier', ('manage_edit',''), ('Owner', 'Manager')),
('View', ('index_html', 'view_form','manage_form'),
('Anonymous', 'Owner', 'Manager')),
)
Can anyone help me solving my problem?