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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
erp5
Commits
24895d97
Commit
24895d97
authored
Dec 05, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
9f6ecc2e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
...rtal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
+0
-1
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/jsplumb/jsplumb.js.xml
...tem/portal_skins/erp5_graph_editor/jsplumb/jsplumb.js.xml
+1
-1
bt5/erp5_graph_editor/WorkflowTemplateItem/portal_workflow/business_process_graph_editor_interaction_workflow/scripts/afterEdit.xml
...s_graph_editor_interaction_workflow/scripts/afterEdit.xml
+7
-10
No files found.
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
View file @
24895d97
...
@@ -54,7 +54,6 @@
...
@@ -54,7 +54,6 @@
import json\n
import json\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
\n
\n
#context.manage_delProperties([\'jsplumb_graph\'])\n
# if a graph has been saved, we use this info for node coordinates.\n
# if a graph has been saved, we use this info for node coordinates.\n
position_graph = context.getProperty(\'jsplumb_graph\')\n
position_graph = context.getProperty(\'jsplumb_graph\')\n
if position_graph:\n
if position_graph:\n
...
...
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/jsplumb/jsplumb.js.xml
View file @
24895d97
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
/* ===========================================================================\n
/* ===========================================================================\n
* Copyright 2013 Nexedi SA and Contributors\n
* Copyright 2013 Nexedi SA and Contributors\n
*
\n
*\n
* This file is part of DREAM.\n
* This file is part of DREAM.\n
*\n
*\n
* DREAM is free software: you can redistribute it and/or modify\n
* DREAM is free software: you can redistribute it and/or modify\n
...
...
bt5/erp5_graph_editor/WorkflowTemplateItem/portal_workflow/business_process_graph_editor_interaction_workflow/scripts/afterEdit.xml
View file @
24895d97
...
@@ -54,19 +54,18 @@
...
@@ -54,19 +54,18 @@
business_process = sci[\'object\']\n
business_process = sci[\'object\']\n
graph = business_process.getProperty(\'jsplumb_graph\')\n
graph = business_process.getProperty(\'jsplumb_graph\')\n
\n
\n
trade_state_dict = dict(start=None, end=None)\n
\n
for trade_state in business_process.getPortalObject().portal_categories.trade_state.getCategoryChildValueList():\n
if graph:\n
trade_state_dict = dict(start=None, end=None)\n
for trade_state in business_process.getPortalObject().portal_categories.trade_state.getCategoryChildValueList():\n
# XXX I hope no duplicates\n
# XXX I hope no duplicates\n
trade_state_dict[trade_state.getReference() or trade_state.getId()] = trade_state\n
trade_state_dict[trade_state.getReference() or trade_state.getId()] = trade_state\n
\n
\n
from pprint import pformat\n
\n
if graph:\n
graph = json.loads(graph)[\'graph\']\n
graph = json.loads(graph)[\'graph\']\n
\n
\n
for edge_
id, edge_data in graph[\'edge\'].item
s():\n
for edge_
data in graph[\'edge\'].value
s():\n
# Create the business link if it does not exist yet.\n
# Create the business link if it does not exist yet.\n
if not edge_data.get(\'business_
process_relative
_url\'):\n
if not edge_data.get(\'business_
link
_url\'):\n
business_process.newContent(\n
business_process.newContent(\n
portal_type=\'Business Link\',\n
portal_type=\'Business Link\',\n
predecessor_value=trade_state_dict[edge_data[\'source\']],\n
predecessor_value=trade_state_dict[edge_data[\'source\']],\n
...
@@ -74,8 +73,6 @@ if graph:\n
...
@@ -74,8 +73,6 @@ if graph:\n
title=edge_data.get(\'name\'),\n
title=edge_data.get(\'name\'),\n
trade_phase=edge_data.get(\'trade_phase\'),\n
trade_phase=edge_data.get(\'trade_phase\'),\n
)\n
)\n
\n
if not graph: bam\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
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