Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
Commits
ab887735
Commit
ab887735
authored
13 years ago
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor script to get function and role from System Preference
parent
f01d4dcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Base_getDefaultAssignmentArgumentDict.xml
...erp5_credential/Base_getDefaultAssignmentArgumentDict.xml
+7
-4
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Base_getDefaultAssignmentArgumentDict.xml
View file @
ab887735
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/bt/revision
View file @
ab887735
345
346
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment