Commit ab887735 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor script to get function and role from System Preference

parent f01d4dcb
...@@ -51,11 +51,14 @@ ...@@ -51,11 +51,14 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
This is script is used by ERP5Site_registerCredentialRequest to be overwritten \n Returns the function list and role list according to the properties \n
for each project that you want create one Credential Request or Person \n selected in System Preference enabled\n
with specific role and function\n
"""\n """\n
return dict(role_list=[], function_list=[])\n portal_preferences = context.getPortalObject().portal_preferences\n
function_list = portal_preferences.getPreferredCredentialAssignmentFunctionList()\n
role_list = portal_preferences.getPreferredCredentialAssignmentRoleList()\n
\n
return dict(role_list=role_list, function_list=function_list)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
345 346
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment