Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
ab887735
Commit
ab887735
authored
Jun 19, 2011
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 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
This is script is used by ERP5Site_registerCredentialRequest to be overwritten \n
for each project that you want create one Credential Request or Person \n
with specific role and function\n
Returns the function list and role list according to the properties \n
selected in System Preference enabled\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>
</item>
<item>
...
...
bt5/erp5_credential/bt/revision
View file @
ab887735
345
\ No newline at end of file
346
\ No newline at end of file
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