[Zope] Problems with permissions

nico@nfg.nl nico@nfg.nl
15 Nov 2001 11:25:20 +0100


Goodmorning,

I'm having some problems with adding a new product to a website.
I can add the product in my test-folder, but not in the website. It
isn't shown in the list with addable products. I think it has
something to do with the permissions.

Here 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 here are my permission settings:

    __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?