Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
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
Nikola Balog
osie
Commits
3bc08b4a
Commit
3bc08b4a
authored
Jul 31, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add actions and needed workflows.
parent
3f880755
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
1 deletion
+91
-1
bt5/erp5_opcua/ActionTemplateItem/portal_types/OPCUA%20Document/view.xml
...ActionTemplateItem/portal_types/OPCUA%20Document/view.xml
+79
-0
bt5/erp5_opcua/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
...rtalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+6
-0
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.py
...em/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.py
+3
-1
bt5/erp5_opcua/bt/template_action_path_list
bt5/erp5_opcua/bt/template_action_path_list
+1
-0
bt5/erp5_opcua/bt/template_portal_type_workflow_chain_list
bt5/erp5_opcua/bt/template_portal_type_workflow_chain_list
+2
-0
No files found.
bt5/erp5_opcua/ActionTemplateItem/portal_types/OPCUA%20Document/view.xml
0 → 100644
View file @
3bc08b4a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
view
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
View
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/OPCUADocument_view
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_opcua/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
0 → 100644
View file @
3bc08b4a
<workflow_chain>
<chain>
<type>
OPCUA Document
</type>
<workflow>
edit_workflow, validation_workflow
</workflow>
</chain>
</workflow_chain>
\ No newline at end of file
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.py
View file @
3bc08b4a
...
@@ -6,7 +6,7 @@ from erp5.component.module.Log import log
...
@@ -6,7 +6,7 @@ from erp5.component.module.Log import log
def
getPropertyId
(
node_id
):
def
getPropertyId
(
node_id
):
# XXX: based on node_id guess property type, too! -i -> integer , s- string, etc,,
# XXX: based on node_id guess property type, too! -i -> integer , s- string, etc,,
return
node_id
.
replace
(
";"
,
""
)
return
node_id
#
.replace(";", "")
# XXX: get rid of Proxy roles on this script when proper authentication is used!!!
# XXX: get rid of Proxy roles on this script when proper authentication is used!!!
...
@@ -25,4 +25,6 @@ else:
...
@@ -25,4 +25,6 @@ else:
node_value
=
data
[
'val'
]
node_value
=
data
[
'val'
]
log
(
"Set '%s' = '%s' to %s as %s"
%
(
node_id
,
node_value
,
default_opcua_document
,
getPropertyId
(
node_id
)))
log
(
"Set '%s' = '%s' to %s as %s"
%
(
node_id
,
node_value
,
default_opcua_document
,
getPropertyId
(
node_id
)))
log
(
data
)
log
(
data
)
node_dict
=
default_opcua_document
.
getNodeDict
()
log
(
node_dict
)
# XXX: set to "ERP5 OPCUA Document" property
# XXX: set to "ERP5 OPCUA Document" property
bt5/erp5_opcua/bt/template_action_path_list
0 → 100644
View file @
3bc08b4a
OPCUA Document | view
\ No newline at end of file
bt5/erp5_opcua/bt/template_portal_type_workflow_chain_list
0 → 100644
View file @
3bc08b4a
OPCUA Document | edit_workflow
OPCUA Document | validation_workflow
\ 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