|
Hello,
We've seen for instances of glossary and image gallery that the list of local roles include Section * and Workspace * roles, no matter where the object is located (sections or workspaces).
We've found the code where the filtering is done and it seems that we should take into account the current location as a new filter of the context. Is this right?
The snippet is in MembershipTool.py in the method getCPSCandidateLocalRoles:
################ # filter roles by portal type using prefix # XXX TODO relevant roles should be store in the portal_types tool ptype_role_prefix = {'Section': ('Section',), 'Workspace': ('Workspace'), 'Wiki': ('Contributor', 'Reader'), 'Calendar': ('Workspace',), 'CPSForum': ('Forum',), 'Chat': ('Chat',), 'CPS Calendar': ('Attendee',), 'Blog': ('BlogManager', 'BlogPoster'), } ptype = obj.portal_type if ptype in ptype_role_prefix.keys(): ########################
Thank you very much. JoseLuis de la Rosa
Triviño
Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.
|
_______________________________________________ cps-users mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/cps-users
