Problems with permissions
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?
nico@nfg.nl writes:
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. I do not understand the difference between "test-folder" and "website". I expect "website" is a folder, too. Check its "Add MailFormulier" permission. Apparently, it is different from that in "test-folder".
Dieter
participants (2)
-
Dieter Maurer -
nico@nfg.nl