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
Laurent S
erp5
Commits
697eed66
Commit
697eed66
authored
Dec 04, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working version !
parent
25d2bd08
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
...rtal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
+5
-4
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_view.xml
...m/portal_skins/erp5_graph_editor/BusinessProcess_view.xml
+1
-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
+5
-4
No files found.
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.xml
View file @
697eed66
...
@@ -58,9 +58,7 @@ position_graph = context.getProperty(\'jsplumb_graph\')\n
...
@@ -58,9 +58,7 @@ position_graph = context.getProperty(\'jsplumb_graph\')\n
\n
\n
if position_graph:\n
if position_graph:\n
context.log(position_graph)\n
context.log(position_graph)\n
\n
position_graph = json.loads(position_graph)[\'graph\']\n
position_graph = json.loads(position_graph)\n
\n
\n
\n
visited_business_process_set = set() # prevent infinite recurisions\n
visited_business_process_set = set() # prevent infinite recurisions\n
\n
\n
...
@@ -72,9 +70,12 @@ def getBusinessProcessGraph(business_process):\n
...
@@ -72,9 +70,12 @@ def getBusinessProcessGraph(business_process):\n
for link in business_process.contentValues(portal_type=\'Business Link\'):\n
for link in business_process.contentValues(portal_type=\'Business Link\'):\n
for trade_state in (link.getPredecessorValue(), link.getSuccessorValue()):\n
for trade_state in (link.getPredecessorValue(), link.getSuccessorValue()):\n
if trade_state is not None:\n
if trade_state is not None:\n
graph[\'node\'][trade_state.getReference() or trade_state.getId()] = dict(\n
state_id = trade_state.getReference() or trade_state.getId()\n
graph[\'node\'][state_id] = dict(\n
_class=\'erp5.business_process.trade_state\',\n
_class=\'erp5.business_process.trade_state\',\n
name=trade_state.getTranslatedTitle())\n
name=trade_state.getTranslatedTitle())\n
if state_id in position_graph[\'node\']:\n
graph[\'node\'][state_id][\'coordinate\'] = position_graph[\'node\'][state_id][\'coordinate\'] \n
if link.getPredecessor() and link.getSuccessor(): # XXX no start ??\n
if link.getPredecessor() and link.getSuccessor(): # XXX no start ??\n
graph[\'edge\'][link.getRelativeUrl()] = dict(\n
graph[\'edge\'][link.getRelativeUrl()] = dict(\n
_class=\'erp5.business_process.business_link\',\n
_class=\'erp5.business_process.business_link\',\n
...
...
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_view.xml
View file @
697eed66
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
enctype
</string>
</key>
<key>
<string>
enctype
</string>
</key>
<value>
<string>
application/x-www-form-urlencoded
</string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
group_list
</string>
</key>
<key>
<string>
group_list
</string>
</key>
...
...
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/jsplumb/jsplumb.js.xml
View file @
697eed66
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts176
87421.03
</string>
</value>
<value>
<string>
ts176
91107.44
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -526,7 +526,6 @@
...
@@ -526,7 +526,6 @@
}).declareAcquiredMethod("notifyDataChanged",
"notifyDataChanged").declareMethod("render",
function(data)
{\n
}).declareAcquiredMethod("notifyDataChanged",
"notifyDataChanged").declareMethod("render",
function(data)
{\n
var
gadget =
this;\n
var
gadget =
this;\n
this.props.data =
{};\n
this.props.data =
{};\n
console.log("render",
data);\n
if
(data.value)
{\n
if
(data.value)
{\n
//
Gadget
embedded
in
ERP5\n
//
Gadget
embedded
in
ERP5\n
this.props.erp5_key =
data.key;\n
this.props.erp5_key =
data.key;\n
...
@@ -545,9 +544,11 @@
...
@@ -545,9 +544,11 @@
}\n
}\n
this.props.jsplumb_instance =
jsPlumb.getInstance();\n
this.props.jsplumb_instance =
jsPlumb.getInstance();\n
}).declareMethod("getContent",
function()
{\n
}).declareMethod("getContent",
function()
{\n
var
ret =
{};\n
if
(this.props.erp5_key)
{\n
if
(this.props.erp5_key)
{\n
//
ERP5\n
//
ERP5\n
return
JSON.stringify({key:
this.props.erp5_key,
value:
this.props.data});\n
ret[this.props.erp5_key]
=
JSON.stringify(this.props.data);\n
return
ret;\n
}\n
}\n
return
JSON.stringify(this.props.data);\n
return
JSON.stringify(this.props.data);\n
}).declareMethod("startService",
function()
{\n
}).declareMethod("startService",
function()
{\n
...
@@ -598,7 +599,7 @@
...
@@ -598,7 +599,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
2544
9
</int>
</value>
<value>
<int>
2544
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
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