Dear all,

Apart from the default local roles renaming discussed earlier on this list, CPS probably needs a way to better define which local roles are relevant according to the context.

Currently, this information is spread in several places:
  1 CPSDefault/skins/cps_default/getCPSLocaleRoles whose result is based on :
  2 CPSCore/CPSMembershipTool.getCPSCandidateLocalRoles
  3 CPSSubscriptions/SubscriptionsTool.setLocalRolesArea and related methods

1 & 2 are used to display the list of possible roles to assign with the [folder|forum|cps_chat]_localrole_form.pt templates.

3 is used by the folder_notifications_form template.

Proposals:

A. Build a new dedicated tool (in CPSDefault) to store the localrole related code of SubscriptionsTool and use it in the skins templates and scripts

A-bis. Use the CPSMembershipTool of CPSDefault instead of CPSCore's to do this.

B. Ask the portal_wokflow tool to guess which localroles are relevant according to context's portal_type + wf state (what about stacks ?)

Maybe a mix of A and B is possible.

Please comment these proposals by adding a note to:
http://svn.nuxeo.org/trac/pub/ticket/661


-- Best,

Olivier

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to