I am writing a new workflow for my plone site, and I need to create a
new role for the workflow. I can add the new role through the ZMI by:
1. adding the role to zcl_users
2. adding the role under the Security tab

I can accomplish the first task with this code in my Install.py:
acltool = getToolByName(self, 'acl_users')
    rmanager = acltool.portal_role_manager
    roleIds = rmanager.listRoleIds()
    if not 'Editor' in roleIds:
        rmanager.addRole('Editor', title="Content Editor")
        print >> out, "Added Editor role"
    else:
        print >> out, "Editor Role already in place"

How do I add the role under the security tab in the root of my site? 

If I just do the above, the role does not show up anywhere in the site.

Thanks!

Mark
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to