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
fc9ddec3
Commit
fc9ddec3
authored
Jun 07, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos
parent
9adaa958
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_closePersonAssignment.xml
...p5_credential/CredentialRequest_closePersonAssignment.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
...5_credential/CredentialRequest_updatePersonAssignment.xml
+6
-7
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_closePersonAssignment.xml
View file @
fc9ddec3
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""Close all person assign
em
nt \n
<value>
<string>
"""Close all person assign
me
nt \n
Parameters:\n
Parameters:\n
role -- Role category item (List of String, default: [])\n
role -- Role category item (List of String, default: [])\n
comment -- Workflow transition comment (String, default: "")\n
comment -- Workflow transition comment (String, default: "")\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
View file @
fc9ddec3
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""Create an assi
ng
ment for the person depending credential request configuration\n
<value>
<string>
"""Create an assi
gn
ment for the person depending credential request configuration\n
Proxy: Assignee -- allow to update the related assign
e
ment"""\n
Proxy: Assignee -- allow to update the related assignment"""\n
\n
\n
# check the script is not called from a url\n
# check the script is not called from a url\n
if REQUEST is not None:\n
if REQUEST is not None:\n
...
@@ -61,15 +61,14 @@ person = context.getDestinationDecisionValue(portal_type="Person")\n
...
@@ -61,15 +61,14 @@ person = context.getDestinationDecisionValue(portal_type="Person")\n
organisation = context.getDestinationDecisionValue(portal_type="Organisation")\n
organisation = context.getDestinationDecisionValue(portal_type="Organisation")\n
\n
\n
assignment_configuration = {}\n
assignment_configuration = {}\n
#Look on current assign
e
ment\n
#Look on current assignment\n
old_role_list = context.portal_categories.role.getCategoryChildLogicalPathItemList()[1:]\n
old_role_list = context.portal_categories.role.getCategoryChildLogicalPathItemList()[1:]\n
#old_role_list look like [[\'title\',\'logical_path\'],]\n
#old_role_list look like [[\'title\',\'logical_path\'],]\n
old_role_list = [
category[1] for category in old_role_list]\n
old_role_list = [category[1] for category in old_role_list]\n
for role in context.getRoleList():\n
for role in context.getRoleList():\n
old_role_list.remove(role)\n
old_role_list.remove(role)\n
\n
\n
\n
#Close old assign
e
ment\n
#Close old assignment\n
open_assignment_list = context.CredentialRequest_closePersonAssignment(old_role_list)\n
open_assignment_list = context.CredentialRequest_closePersonAssignment(old_role_list)\n
\n
\n
#Initialisation\n
#Initialisation\n
...
@@ -79,7 +78,7 @@ delay = today+assignment_duration\n
...
@@ -79,7 +78,7 @@ delay = today+assignment_duration\n
\n
\n
current_assignment_list = {}\n
current_assignment_list = {}\n
for assignment in open_assignment_list:\n
for assignment in open_assignment_list:\n
role = assign
e
ment.getRole()\n
role = assignment.getRole()\n
if role in current_assignment_list:\n
if role in current_assignment_list:\n
current_assignment_list[role].append(assignment)\n
current_assignment_list[role].append(assignment)\n
else:\n
else:\n
...
...
bt5/erp5_credential/bt/revision
View file @
fc9ddec3
340
341
\ No newline at end of file
\ 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