Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
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
Hide 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
\n
if position_graph:\n
context.log(position_graph)\n
\n
position_graph = json.loads(position_graph)\n
\n
position_graph = json.loads(position_graph)[\'graph\']\n
\n
visited_business_process_set = set() # prevent infinite recurisions\n
\n
...
...
@@ -72,9 +70,12 @@ def getBusinessProcessGraph(business_process):\n
for link in business_process.contentValues(portal_type=\'Business Link\'):\n
for trade_state in (link.getPredecessorValue(), link.getSuccessorValue()):\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
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
graph[\'edge\'][link.getRelativeUrl()] = dict(\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 @@
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string>
application/x-www-form-urlencoded
</string>
</value>
<value>
<string></string>
</value>
</item>
<item>
<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 @@
<dictionary>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts176
87421.03
</string>
</value>
<value>
<string>
ts176
91107.44
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -526,7 +526,6 @@
}).declareAcquiredMethod("notifyDataChanged",
"notifyDataChanged").declareMethod("render",
function(data)
{\n
var
gadget =
this;\n
this.props.data =
{};\n
console.log("render",
data);\n
if
(data.value)
{\n
//
Gadget
embedded
in
ERP5\n
this.props.erp5_key =
data.key;\n
...
...
@@ -545,9 +544,11 @@
}\n
this.props.jsplumb_instance =
jsPlumb.getInstance();\n
}).declareMethod("getContent",
function()
{\n
var
ret =
{};\n
if
(this.props.erp5_key)
{\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
return
JSON.stringify(this.props.data);\n
}).declareMethod("startService",
function()
{\n
...
...
@@ -598,7 +599,7 @@
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
2544
9
</int>
</value>
<value>
<int>
2544
1
</int>
</value>
</item>
<item>
<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