Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
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
Paul Graydon
wendelin-telecom
Commits
acb01e51
Commit
acb01e51
authored
Sep 18, 2024
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin_telecom_base: Rework ORS and client project management
parent
6b1151f7
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
2019 additions
and
143 deletions
+2019
-143
bt5/wendelin_telecom_base/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit%20Module/fast_input_ors_update.xml
...a%20Acquisition%20Unit%20Module/fast_input_ors_update.xml
+81
-0
bt5/wendelin_telecom_base/ActionTemplateItem/portal_types/Project%20Module/register_ors_client_project.xml
...al_types/Project%20Module/register_ors_client_project.xml
+5
-5
bt5/wendelin_telecom_base/PathTemplateItem/portal_callables/IngestionPolicy_parseOrsFluentdTag.py
...em/portal_callables/IngestionPolicy_parseOrsFluentdTag.py
+6
-0
bt5/wendelin_telecom_base/PathTemplateItem/portal_ingestion_policies/ors_enb_log_ingestion.xml
...eItem/portal_ingestion_policies/ors_enb_log_ingestion.xml
+2
-2
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_getDialogDestinationProjectItemList.py
..._telecom_base/Base_getDialogDestinationProjectItemList.py
+9
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_getDialogDestinationProjectItemList.xml
...telecom_base/Base_getDialogDestinationProjectItemList.xml
+2
-2
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_registerOrsClientProject.py
...ns/wendelin_telecom_base/Base_registerOrsClientProject.py
+0
-69
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary.xml
...lin_telecom_base/Base_viewWendelinTelecomFieldLibrary.xml
+4
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_dialog_mode_email.xml
..._viewWendelinTelecomFieldLibrary/my_dialog_mode_email.xml
+78
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_dialog_mode_reference.xml
...wWendelinTelecomFieldLibrary/my_dialog_mode_reference.xml
+6
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_destination_project_title.xml
...ibrary/my_view_mode_listbox_destination_project_title.xml
+169
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_reference.xml
...linTelecomFieldLibrary/my_view_mode_listbox_reference.xml
+72
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_title.xml
...endelinTelecomFieldLibrary/my_view_mode_listbox_title.xml
+72
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_getFastInputOrsConfigurationList.py
...AcquisitionUnitModule_getFastInputOrsConfigurationList.py
+14
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_getFastInputOrsConfigurationList.xml
...cquisitionUnitModule_getFastInputOrsConfigurationList.xml
+62
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_updateFastInputOrsConfigurationList.py
...uisitionUnitModule_updateFastInputOrsConfigurationList.py
+23
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_updateFastInputOrsConfigurationList.xml
...isitionUnitModule_updateFastInputOrsConfigurationList.xml
+62
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog.xml
...ataAcquisitionUnitModule_viewFastInputOrsUpdateDialog.xml
+139
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox.xml
...sitionUnitModule_viewFastInputOrsUpdateDialog/listbox.xml
+627
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_destination_project.xml
...wFastInputOrsUpdateDialog/listbox_destination_project.xml
+95
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_reference.xml
...Module_viewFastInputOrsUpdateDialog/listbox_reference.xml
+89
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_title.xml
...UnitModule_viewFastInputOrsUpdateDialog/listbox_title.xml
+84
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_createOrsDataSupply.py
...n_telecom_base/DataAcquisitionUnit_createOrsDataSupply.py
+13
-7
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_createOrsDataSupply.xml
..._telecom_base/DataAcquisitionUnit_createOrsDataSupply.xml
+1
-1
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_getERabDataArrayKey.py
...n_telecom_base/DataAcquisitionUnit_getERabDataArrayKey.py
+0
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_getERabDataArrayKey.xml
..._telecom_base/DataAcquisitionUnit_getERabDataArrayKey.xml
+1
-1
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_getEUtranDataArrayKey.py
...telecom_base/DataAcquisitionUnit_getEUtranDataArrayKey.py
+0
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_getEUtranDataArrayKey.xml
...elecom_base/DataAcquisitionUnit_getEUtranDataArrayKey.xml
+1
-1
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_viewERabAccessibilityKpi/your_e_rab_accessibility_kpi.xml
...viewERabAccessibilityKpi/your_e_rab_accessibility_kpi.xml
+1
-1
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_viewEUtranIpThroughputKpi/your_e_utran_ip_throughput_kpi.xml
...wEUtranIpThroughputKpi/your_e_utran_ip_throughput_kpi.xml
+1
-1
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ERP5Site_registerOrs.py
...ortal_skins/wendelin_telecom_base/ERP5Site_registerOrs.py
+64
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ERP5Site_registerOrs.xml
...rtal_skins/wendelin_telecom_base/ERP5Site_registerOrs.xml
+62
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_registerOrsClientProject.py
...in_telecom_base/ProjectModule_registerOrsClientProject.py
+70
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_registerOrsClientProject.xml
...n_telecom_base/ProjectModule_registerOrsClientProject.xml
+2
-2
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_viewRegisterOrsClientProjectDialog.xml
...base/ProjectModule_viewRegisterOrsClientProjectDialog.xml
+7
-6
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_viewRegisterOrsClientProjectDialog/your_client_email.xml
..._viewRegisterOrsClientProjectDialog/your_client_email.xml
+89
-0
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_viewRegisterOrsClientProjectDialog/your_project_reference.xml
...RegisterOrsClientProjectDialog/your_project_reference.xml
+2
-7
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_viewRegisterOrsClientProjectDialog/your_project_title.xml
...viewRegisterOrsClientProjectDialog/your_project_title.xml
+2
-7
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project_newOrs.py
...Item/portal_skins/wendelin_telecom_base/Project_newOrs.py
+0
-30
bt5/wendelin_telecom_base/bt/template_action_path_list
bt5/wendelin_telecom_base/bt/template_action_path_list
+2
-1
No files found.
bt5/wendelin_telecom_base/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit%20Module/fast_input_ors_update.xml
0 → 100644
View file @
acb01e51
<?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_jio_fast_input
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_fast_input
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
fast_input_ors_update
</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>
2.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Update ORS Configurations
</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}/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/ActionTemplateItem/portal_types/Project
/add_ors_to
_project.xml
→
bt5/wendelin_telecom_base/ActionTemplateItem/portal_types/Project
%20Module/register_ors_client
_project.xml
View file @
acb01e51
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
add_ors_to
_project
</string>
</value>
<value>
<string>
register_ors_client
_project
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
permissions
</string>
</key>
<key>
<string>
permissions
</string>
</key>
...
@@ -54,11 +54,11 @@
...
@@ -54,11 +54,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
priority
</string>
</key>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1
.0
</float>
</value>
<value>
<float>
2
.0
</float>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Add ORS to
Project
</string>
</value>
<value>
<string>
Register ORS Client
Project
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
visible
</string>
</key>
<key>
<string>
visible
</string>
</key>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/Project
_viewNewOrs
Dialog
</string>
</value>
<value>
<string>
string:${object_url}/Project
Module_viewRegisterOrsClientProject
Dialog
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
python:portal.Base_checkPermission(\'
data_acquisition_uni
t_module\', \'Add portal content\')
</string>
</value>
<value>
<string>
python:portal.Base_checkPermission(\'
projec
t_module\', \'Add portal content\')
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/PathTemplateItem/portal_callables/IngestionPolicy_parseOrsFluentdTag.py
View file @
acb01e51
if
not
reference
:
if
not
reference
:
raise
ValueError
(
'reference is not defined'
)
raise
ValueError
(
'reference is not defined'
)
ors_fluentd_tag_prefix
=
"ors."
if
not
reference
.
startswith
(
ors_fluentd_tag_prefix
):
raise
ValueError
(
'reference %s is not a valid ORS fluentd tag'
%
reference
)
reference
=
reference
[
len
(
ors_fluentd_tag_prefix
):]
return
{
return
{
'resource_reference'
:
context
.
data_product_module
.
ors_enb_log_data
.
getReference
(),
'resource_reference'
:
context
.
data_product_module
.
ors_enb_log_data
.
getReference
(),
'specialise_reference'
:
reference
,
'specialise_reference'
:
reference
,
...
...
bt5/wendelin_telecom_base/PathTemplateItem/portal_ingestion_policies/ors_enb_log_ingestion.xml
View file @
acb01e51
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
8.50482.31264.3529
3
</string>
</value>
<value>
<string>
101
9.8193.45534.3128
3
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
172
4230234.35
</float>
<float>
172
5631523.71
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_getDialogDestinationProjectItemList.py
0 → 100644
View file @
acb01e51
portal
=
context
.
getPortalObject
()
destination_project_list
=
portal
.
project_module
.
objectValues
(
portal_type
=
'Project'
)
destination_project_title_list
=
[[
''
,
''
]]
for
project
in
destination_project_list
:
destination_project_title_list
.
append
([
project
.
getTitle
(),
project
.
getRelativeUrl
()])
return
destination_project_title_list
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Project_newOrs
.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Base_getDialogDestinationProjectItemList
.xml
View file @
acb01e51
...
@@ -50,11 +50,11 @@
...
@@ -50,11 +50,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
ors_tag, ors_title, form_id=None, **kw
</string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_newOrs
</string>
</value>
<value>
<string>
Base_getDialogDestinationProjectItemList
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_registerOrsClientProject.py
deleted
100644 → 0
View file @
6b1151f7
import
json
import
random
portal
=
context
.
getPortalObject
()
client_function
=
'function/user'
password_length
=
16
system_random
=
random
.
SystemRandom
()
alphabet
=
string
.
ascii_letters
+
string
.
digits
client_init_password
=
''
.
join
(
system_random
.
choice
(
alphabet
)
for
i
in
range
(
password_length
))
project
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Project'
,
# Do not test for title collision
reference
=
project_reference
,
validation_state
=
'validated'
)
if
project
:
error_msg
=
"Client project %s already registered."
%
project_reference
response_dict
=
dict
(
error_msg
=
error_msg
)
return
json
.
dumps
(
response_dict
)
user
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Person'
,
reference
=
client_username
,
validation_state
=
'validated'
)
if
user
:
error_msg
=
"Client account username not available: %s."
%
client_username
response_dict
=
dict
(
error_msg
=
error_msg
)
return
json
.
dumps
(
response_dict
)
ors_reference
=
'ors.'
+
ors_tag
# Search for DAU across all client projects to prevent tag collision
data_acquisition_unit
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_reference
,
# Do not test for title collision
validation_state
=
'validated'
)
if
data_acquisition_unit
:
error_msg
=
"ORS with tag %s already registered."
%
ors_tag
response_dict
=
dict
(
error_msg
=
error_msg
)
return
json
.
dumps
(
response_dict
)
project
=
portal
.
project_module
.
newContent
(
portal_type
=
'Project'
,
reference
=
project_reference
,
title
=
project_title
,
)
project
.
validate
()
destination_project
=
project
.
getRelativeUrl
()
user
=
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
,
reference
=
client_username
)
user
.
newContent
(
portal_type
=
'Assignment'
,
destination_project
=
destination_project
,
function
=
client_function
).
open
()
user
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
client_username
,
password
=
client_init_password
).
validate
()
user
.
validate
()
data_acquisition_unit
=
portal
.
data_acquisition_unit_module
.
newContent
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_reference
,
title
=
ors_title
)
data_acquisition_unit
.
validate
()
data_supply
=
data_acquisition_unit
.
DataAcquisitionUnit_createOrsDataSupply
(
destination_project
,
batch
=
1
)
response_dict
=
dict
(
username
=
client_username
,
init_password
=
client_init_password
)
return
json
.
dumps
(
response_dict
)
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary.xml
View file @
acb01e51
...
@@ -78,6 +78,10 @@
...
@@ -78,6 +78,10 @@
<list>
<list>
<string>
my_dialog_mode_reference
</string>
<string>
my_dialog_mode_reference
</string>
<string>
my_dialog_mode_title
</string>
<string>
my_dialog_mode_title
</string>
<string>
my_view_mode_listbox_destination_project_title
</string>
<string>
my_dialog_mode_email
</string>
<string>
my_view_mode_listbox_reference
</string>
<string>
my_view_mode_listbox_title
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_dialog_mode_email.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_dialog_mode_email
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_email_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_dialog_mode_reference.xml
View file @
acb01e51
...
@@ -6,6 +6,12 @@
...
@@ -6,6 +6,12 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_dialog_mode_reference
</string>
</value>
<value>
<string>
my_dialog_mode_reference
</string>
</value>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_destination_project_title.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
items
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_view_mode_listbox_destination_project_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
allow_creation
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The project to which this transaction is related to on the client side.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_list_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<list>
<tuple>
<string>
(tales)
</string>
<string>
(tales)
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Client Project
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
context/Base_getDialogDestinationProjectItemList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(x, x) for x in context.getPortalProjectTypeList()]
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_reference.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_view_mode_listbox_reference
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Base_viewWendelinTelecomFieldLibrary/my_view_mode_listbox_title.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_view_mode_listbox_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_getFastInputOrsConfigurationList.py
0 → 100644
View file @
acb01e51
data_acquisition_unit_list
=
context
.
contentValues
(
portal_type
=
'Data Acquisition Unit'
)
listbox_item_list
=
[]
for
data_acquisition_unit
in
data_acquisition_unit_list
:
destination_project
=
None
for
related_data_supply_line
in
data_acquisition_unit
.
Base_getRelatedObjectList
(
portal_type
=
'Data Supply Line'
):
related_data_supply
=
related_data_supply_line
.
getParentValue
()
if
related_data_supply
:
destination_project
=
related_data_supply
.
getDestinationProject
()
context_obj
=
data_acquisition_unit
.
asContext
(
destination_project
=
destination_project
)
listbox_item_list
.
append
(
context_obj
)
return
listbox_item_list
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_getFastInputOrsConfigurationList.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
lines_num=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_getFastInputOrsConfigurationList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_updateFastInputOrsConfigurationList.py
0 → 100644
View file @
acb01e51
portal
=
context
.
getPortalObject
()
for
listbox_item
in
listbox
:
if
'listbox_key'
in
listbox_item
:
data_acquisition_unit_url
=
listbox_item
[
'listbox_key'
]
title
=
listbox_item
[
'title'
]
destination_project
=
listbox_item
[
'destination_project'
]
data_acquisition_unit
=
portal
.
restrictedTraverse
(
data_acquisition_unit_url
)
data_acquisition_unit
.
setTitle
(
title
)
for
related_data_supply_line
in
data_acquisition_unit
.
Base_getRelatedObjectList
(
portal_type
=
'Data Supply Line'
):
related_data_supply
=
related_data_supply_line
.
getParentValue
()
if
related_data_supply
:
related_data_supply
.
setDestinationProject
(
destination_project
)
else
:
portal_status_message
=
"No related Data Supply found for %s."
%
data_acquisition_unit
.
getReference
()
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
,
portal_status_level
=
'error'
)
return
context
.
Base_redirect
(
'view'
,
**
kw
)
return
context
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Data Acquisition Units successfully updated.'
})
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_updateFastInputOrsConfigurationList.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
listbox=(), **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_updateFastInputOrsConfigurationList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ERP5 Form"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_updateFastInputOrsConfigurationList
</string>
</value>
</item>
<item>
<key>
<string>
action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
edit_order
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string>
multipart/form-data
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<list>
<string>
left
</string>
<string>
right
</string>
<string>
center
</string>
<string>
bottom
</string>
<string>
hidden
</string>
</list>
</value>
</item>
<item>
<key>
<string>
groups
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
listbox
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list>
<string>
listbox_destination_project
</string>
<string>
listbox_reference
</string>
<string>
listbox_title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
left
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
right
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
<value>
<string>
POST
</string>
</value>
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
<value>
<string>
form_dialog
</string>
</value>
</item>
<item>
<key>
<string>
row_length
</string>
</key>
<value>
<int>
4
</int>
</value>
</item>
<item>
<key>
<string>
stored_encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Update ORS Configurations
</string>
</value>
</item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
update_action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
update_action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ListBox"
module=
"Products.ERP5Form.ListBox"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
<item>
<key>
<string>
required_not_found
</string>
</key>
<value>
<string>
Input is required but no input given.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
all_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
anchor
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
count_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_display_style
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_style_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
domain_tree
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
global_attributes
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
global_search_column
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
lines
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
meta_types
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
page_navigation_template
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
page_template
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
report_root_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
report_tree
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
row_css_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
search
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
search_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
select
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
sort_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
stat_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
stat_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
style_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
untranslatable_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
url_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
all_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
anchor
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
count_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_display_style
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_style_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
domain_tree
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
global_attributes
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
global_search_column
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
lines
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
meta_types
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
page_navigation_template
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
page_template
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
report_root_list
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
report_tree
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
row_css_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
search
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
search_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
select
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
sort_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
stat_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
stat_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
style_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
untranslatable_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
url_columns
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
all_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
anchor
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
</tuple>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
destination_project
</string>
<string>
Client Project
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
count_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_display_style
</string>
</key>
<value>
<string>
table
</string>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
display_style_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
domain_tree
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<list>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
destination_project
</string>
<string>
Client Project
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
global_attributes
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
global_search_column
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
lines
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
list_action
</string>
</key>
<value>
<string>
list
</string>
</value>
</item>
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
meta_types
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
page_navigation_template
</string>
</key>
<value>
<string>
ListBox_viewSliderPageNavigationRenderer
</string>
</value>
</item>
<item>
<key>
<string>
page_template
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
report_root_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
report_tree
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
row_css_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
search
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
search_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
select
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
data_acquisition_unit_fast_input
</string>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
sort_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
stat_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
stat_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
style_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Data Acquisition Units
</string>
</value>
</item>
<item>
<key>
<string>
untranslatable_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
url_columns
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Method"
module=
"Products.Formulator.MethodField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
DataAcquisitionUnitModule_getFastInputOrsConfigurationList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_destination_project.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox_destination_project
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The project to which the corresponding Data Supply is related on the client side.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_listbox_destination_project_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWendelinTelecomFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<list>
<tuple>
<string>
Project
</string>
<string>
Project
</string>
</tuple>
</list>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_reference.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
editable
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox_reference
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The internal reference of the object.
</string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_listbox_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWendelinTelecomFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnitModule_viewFastInputOrsUpdateDialog/listbox_title.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
listbox_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The name of the object.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_listbox_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWendelinTelecomFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_createOrsDataSupply.py
View file @
acb01e51
'''
Creates a pre-configured Data Supply related to a Data Acquisition Unit representing an ORS.
The related Data Supply has the same reference as the Data Acquisition Unit.
The script first checks if the Data Supply already exists, and will create it if it doesn't.
If batch == 1, the Data Supply object is returned in both cases of the above check.
Otherwise, the user is redirected to the Data Supply's view page.
'''
if
not
context
.
getReference
():
if
not
context
.
getReference
():
return
context
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Reference is not defined
'
})
return
context
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Reference is not defined.'
,
'portal_status_level'
:
'error
'
})
reference
=
context
.
getReference
()
reference
=
context
.
getReference
()
...
@@ -8,19 +17,17 @@ data_supply = context.portal_catalog.getResultValue(
...
@@ -8,19 +17,17 @@ data_supply = context.portal_catalog.getResultValue(
reference
=
reference
,
reference
=
reference
,
validation_state
=
'validated'
validation_state
=
'validated'
)
)
if
data_supply
:
if
data_supply
:
if
batch
:
if
batch
:
return
data_supply
return
data_supply
return
data_supply
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Data Supply already created
'
})
return
data_supply
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Data Supply already exists.
'
})
data_supply
=
context
.
data_supply_module
.
newContent
(
data_supply
=
context
.
data_supply_module
.
newContent
(
portal_type
=
'Data Supply'
,
portal_type
=
'Data Supply'
,
reference
=
reference
,
reference
=
reference
,
source
=
'organisation_module/open_radio_station'
,
source
=
'organisation_module/open_radio_station'
,
source_section
=
'organisation_module/open_radio_station'
,
source_section
=
'organisation_module/open_radio_station'
,
destination
=
'organisation_module/rapid_space_data_center'
,
destination
=
'organisation_module/rapid_space_data_center'
destination_project
=
destination_project
)
)
data_supply
.
newContent
(
data_supply
.
newContent
(
...
@@ -32,7 +39,6 @@ data_supply.newContent(
...
@@ -32,7 +39,6 @@ data_supply.newContent(
use
=
'big_data/ingestion/stream'
,
use
=
'big_data/ingestion/stream'
,
resource
=
"data_product_module/ors_enb_log_data"
resource
=
"data_product_module/ors_enb_log_data"
).
validate
()
).
validate
()
data_supply
.
newContent
(
data_supply
.
newContent
(
portal_type
=
'Data Supply Line'
,
portal_type
=
'Data Supply Line'
,
title
=
'Ingest ORS eNB Log Data'
,
title
=
'Ingest ORS eNB Log Data'
,
...
@@ -47,4 +53,4 @@ data_supply.validate()
...
@@ -47,4 +53,4 @@ data_supply.validate()
if
batch
:
if
batch
:
return
data_supply
return
data_supply
return
data_supply
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Data Supply
is created
'
})
return
data_supply
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Data Supply
successfully created.
'
})
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_createOrsDataSupply.xml
View file @
acb01e51
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
destination_project=None,
batch=0, **kw
</string>
</value>
<value>
<string>
batch=0, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Base
_getERabDataArrayKey.py
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
DataAcquisitionUnit
_getERabDataArrayKey.py
View file @
acb01e51
File moved
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Base_getEUtran
DataArrayKey.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
DataAcquisitionUnit_getERab
DataArrayKey.xml
View file @
acb01e51
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_getEUtran
DataArrayKey
</string>
</value>
<value>
<string>
DataAcquisitionUnit_getERab
DataArrayKey
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Base
_getEUtranDataArrayKey.py
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
DataAcquisitionUnit
_getEUtranDataArrayKey.py
View file @
acb01e51
File moved
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Base_getERab
DataArrayKey.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
DataAcquisitionUnit_getEUtran
DataArrayKey.xml
View file @
acb01e51
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_getERab
DataArrayKey
</string>
</value>
<value>
<string>
DataAcquisitionUnit_getEUtran
DataArrayKey
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_viewERabAccessibilityKpi/your_e_rab_accessibility_kpi.xml
View file @
acb01e51
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'data_array_key\', context.
Base
_getERabDataArrayKey())]
</string>
</value>
<value>
<string>
python: [(\'data_array_key\', context.
DataAcquisitionUnit
_getERabDataArrayKey())]
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/DataAcquisitionUnit_viewEUtranIpThroughputKpi/your_e_utran_ip_throughput_kpi.xml
View file @
acb01e51
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'data_array_key\', context.
Base
_getEUtranDataArrayKey())]
</string>
</value>
<value>
<string>
python: [(\'data_array_key\', context.
DataAcquisitionUnit
_getEUtranDataArrayKey())]
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ERP5Site_registerOrs.py
0 → 100644
View file @
acb01e51
'''
Creates a Data Acquisition Unit, as well as the corresponding Data Supply, with the provided ORS tag as reference.
This script returns a JSON response, as it is intended to be called by Wendelin Telecom slave instances
requested by ORSs in order to register themselves on the platform.
'''
import
json
portal
=
context
.
getPortalObject
()
response_dict
=
{}
# Check if ORS is already registered
data_acquisition_unit
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_tag
,
validation_state
=
'validated'
)
if
data_acquisition_unit
:
error_msg
=
"ORS with tag %s already exists."
%
ors_tag
response_dict
=
dict
(
error_msg
=
error_msg
)
return
json
.
dumps
(
response_dict
)
ors_tag_components
=
ors_tag
.
split
(
'_'
)
if
len
(
ors_tag_components
)
!=
3
:
error_msg
=
"Invalid ORS tag %s found"
%
ors_tag
response_dict
=
dict
(
error_msg
=
error_msg
)
return
json
.
dumps
(
response_dict
)
ors_hostname
,
ors_comp_id
=
ors_tag_components
[
0
],
ors_tag_components
[
1
]
ors_tag_prefix
=
'%s_%s'
%
(
ors_hostname
,
ors_comp_id
)
# Detect the case where an existing ORS has changed the last component of its tag:
# Search for all Data Acquisition Units with the same first two tag components and get their related destination_project
related_data_acquisition_unit_list
=
[
related_data_acquisition_unit
for
related_data_acquisition_unit
\
in
portal
.
data_acquisition_unit_module
.
contentValues
(
filter
=
{
'portal_type'
:
'Data Acquisition Unit'
})
\
if
related_data_acquisition_unit
.
getReference
().
startswith
(
ors_tag_prefix
)
]
destination_project
=
None
if
related_data_acquisition_unit_list
:
related_destination_project_list
=
[]
for
related_data_acquisition_unit
in
related_data_acquisition_unit_list
:
related_data_supply
=
related_data_acquisition_unit
.
DataAcquisitionUnit_createOrsDataSupply
(
batch
=
1
)
related_destination_project
=
related_data_supply
.
getDestinationProject
()
if
related_destination_project
:
related_destination_project_list
.
append
(
related_destination_project
)
# If there is only one destination_project found, link the new Data Acquisition Unit to it
# Else, do not do anything automatically: this case will have to be resolved manually
related_destination_project_set
=
set
(
related_destination_project_list
)
if
len
(
related_destination_project_set
)
==
1
:
destination_project
=
related_destination_project_set
.
pop
()
data_acquisition_unit
=
portal
.
data_acquisition_unit_module
.
newContent
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_tag
)
data_acquisition_unit
.
validate
()
data_supply
=
data_acquisition_unit
.
DataAcquisitionUnit_createOrsDataSupply
(
batch
=
1
)
data_supply
.
setDestinationProject
(
destination_project
)
return
json
.
dumps
(
response_dict
)
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ERP5Site_registerOrs.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
ors_tag
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_registerOrs
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_registerOrsClientProject.py
0 → 100644
View file @
acb01e51
'''
Creates a Project representing a client project, as well as an associated ERP5 Person
corresponding to the client's user account.
The Person will be given the provided email address,
an active assignment with the appropriate function and project,
as well as an ERP5 Login initialized with a random password that will need to be reset.
'''
import
random
portal
=
context
.
getPortalObject
()
project
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Project'
,
# Do not test for title collision
reference
=
project_reference
,
validation_state
=
'validated'
)
if
project
:
portal_status_message
=
"Project with reference %s already exists."
%
project_reference
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
,
portal_status_level
=
'error'
)
return
context
.
Base_redirect
(
form_id
,
**
kw
)
# Email field in action form checks that the email address is valid
# For all other cases, let the caller handle the error
client_user_reference
=
client_email
.
split
(
'@'
)[
0
]
client_user
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Person'
,
reference
=
client_user_reference
,
validation_state
=
'validated'
)
if
client_user
:
portal_status_message
=
"Person with reference %s already exists."
%
client_user_reference
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
,
portal_status_level
=
'error'
)
return
context
.
Base_redirect
(
form_id
,
**
kw
)
project
=
portal
.
project_module
.
newContent
(
portal_type
=
'Project'
,
reference
=
project_reference
,
title
=
project_title
,
)
project
.
validate
()
destination_project
=
project
.
getRelativeUrl
()
password_length
=
20
client_init_password
=
''
.
join
(
random
.
SystemRandom
().
sample
(
string
.
ascii_letters
+
string
.
digits
,
password_length
))
client_function
=
'user'
client_user
=
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
,
reference
=
client_user_reference
,
default_email_text
=
client_email
)
client_user
.
newContent
(
portal_type
=
'Assignment'
,
destination_project
=
destination_project
,
function
=
client_function
).
open
()
client_user
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
client_email
,
password
=
client_init_password
).
validate
()
client_user
.
validate
()
portal_status_message
=
"ORS Client Project successfully registered."
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
)
return
context
.
Base_redirect
(
form_id
,
**
kw
)
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
Bas
e_registerOrsClientProject.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/
ProjectModul
e_registerOrsClientProject.xml
View file @
acb01e51
...
@@ -50,11 +50,11 @@
...
@@ -50,11 +50,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
project_reference, project_title, client_
username, ors_tag, ors_title
, form_id=None, **kw
</string>
</value>
<value>
<string>
project_reference, project_title, client_
email
, form_id=None, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Bas
e_registerOrsClientProject
</string>
</value>
<value>
<string>
ProjectModul
e_registerOrsClientProject
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
_viewNewOrs
Dialog.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
Module_viewRegisterOrsClientProject
Dialog.xml
View file @
acb01e51
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
action
</string>
</key>
<key>
<string>
action
</string>
</key>
<value>
<string>
Project
_newOrs
</string>
</value>
<value>
<string>
Project
Module_registerOrsClientProject
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
action_title
</string>
</key>
<key>
<string>
action_title
</string>
</key>
...
@@ -76,8 +76,9 @@
...
@@ -76,8 +76,9 @@
<key>
<string>
left
</string>
</key>
<key>
<string>
left
</string>
</key>
<value>
<value>
<list>
<list>
<string>
your_ors_tag
</string>
<string>
your_project_reference
</string>
<string>
your_ors_title
</string>
<string>
your_project_title
</string>
<string>
your_client_email
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -92,7 +93,7 @@
...
@@ -92,7 +93,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project
_viewNewOrs
Dialog
</string>
</value>
<value>
<string>
Project
Module_viewRegisterOrsClientProject
Dialog
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
method
</string>
</key>
<key>
<string>
method
</string>
</key>
...
@@ -100,7 +101,7 @@
...
@@ -100,7 +101,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
name
</string>
</key>
<key>
<string>
name
</string>
</key>
<value>
<string>
Project
_viewNewOrs
Dialog
</string>
</value>
<value>
<string>
Project
Module_viewRegisterOrsClientProject
Dialog
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
pt
</string>
</key>
<key>
<string>
pt
</string>
</key>
...
@@ -116,7 +117,7 @@
...
@@ -116,7 +117,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Add ORS to
Project
</string>
</value>
<value>
<string>
Register ORS Client
Project
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
<key>
<string>
unicode_mode
</string>
</key>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/ProjectModule_viewRegisterOrsClientProjectDialog/your_client_email.xml
0 → 100644
View file @
acb01e51
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
required
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_client_email
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_dialog_mode_email
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWendelinTelecomFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Client Email Address
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
_viewNewOrsDialog/your_ors_tag
.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
Module_viewRegisterOrsClientProjectDialog/your_project_reference
.xml
View file @
acb01e51
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<key>
<string>
delegated_list
</string>
</key>
<key>
<string>
delegated_list
</string>
</key>
<value>
<value>
<list>
<list>
<string>
description
</string>
<string>
required
</string>
<string>
required
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
...
@@ -18,7 +17,7 @@
...
@@ -18,7 +17,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_
ors_tag
</string>
</value>
<value>
<string>
your_
project_reference
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
message_values
</string>
</key>
<key>
<string>
message_values
</string>
</key>
...
@@ -65,10 +64,6 @@
...
@@ -65,10 +64,6 @@
<key>
<string>
values
</string>
</key>
<key>
<string>
values
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The fluentbit tag of the ORS to link to the project.
</string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_dialog_mode_reference
</string>
</value>
<value>
<string>
my_dialog_mode_reference
</string>
</value>
...
@@ -83,7 +78,7 @@
...
@@ -83,7 +78,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
ORS Tag
</string>
</value>
<value>
<string>
Project Reference
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</value>
</value>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
_viewNewOrsDialog/your_ors
_title.xml
→
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project
Module_viewRegisterOrsClientProjectDialog/your_project
_title.xml
View file @
acb01e51
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
<key>
<string>
delegated_list
</string>
</key>
<key>
<string>
delegated_list
</string>
</key>
<value>
<value>
<list>
<list>
<string>
description
</string>
<string>
required
</string>
<string>
required
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
...
@@ -18,7 +17,7 @@
...
@@ -18,7 +17,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_
ors
_title
</string>
</value>
<value>
<string>
your_
project
_title
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
message_values
</string>
</key>
<key>
<string>
message_values
</string>
</key>
...
@@ -65,10 +64,6 @@
...
@@ -65,10 +64,6 @@
<key>
<string>
values
</string>
</key>
<key>
<string>
values
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The title of the ORS to link to the project.
</string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_dialog_mode_title
</string>
</value>
<value>
<string>
my_dialog_mode_title
</string>
</value>
...
@@ -83,7 +78,7 @@
...
@@ -83,7 +78,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
ORS
Title
</string>
</value>
<value>
<string>
Project
Title
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</value>
</value>
...
...
bt5/wendelin_telecom_base/SkinTemplateItem/portal_skins/wendelin_telecom_base/Project_newOrs.py
deleted
100644 → 0
View file @
6b1151f7
portal
=
context
.
getPortalObject
()
destination_project
=
context
.
getRelativeUrl
()
ors_reference
=
'ors.'
+
ors_tag
data_acquisition_unit
=
context
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_reference
,
# Do not test for title collision: irrelevant
validation_state
=
'validated'
)
if
data_acquisition_unit
:
portal_status_message
=
"ORS with tag %s already registered."
%
ors_tag
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
,
portal_status_level
=
'error'
)
return
context
.
Base_redirect
(
form_id
,
**
kw
)
data_acquisition_unit
=
portal
.
data_acquisition_unit_module
.
newContent
(
portal_type
=
'Data Acquisition Unit'
,
reference
=
ors_reference
,
title
=
ors_title
)
data_acquisition_unit
.
validate
()
data_supply
=
data_acquisition_unit
.
DataAcquisitionUnit_createOrsDataSupply
(
destination_project
,
batch
=
1
)
portal_status_message
=
"New ORS successfully added to project."
kw
[
'keep_items'
]
=
dict
(
portal_status_message
=
portal_status_message
)
return
context
.
Base_redirect
(
form_id
,
**
kw
)
bt5/wendelin_telecom_base/bt/template_action_path_list
View file @
acb01e51
Data Acquisition Unit Module | fast_input_ors_update
Data Acquisition Unit | create_ors_data_supply
Data Acquisition Unit | create_ors_data_supply
Data Acquisition Unit | view_e_rab_accessibility_kpi
Data Acquisition Unit | view_e_rab_accessibility_kpi
Data Acquisition Unit | view_e_utran_ip_throughput_kpi
Data Acquisition Unit | view_e_utran_ip_throughput_kpi
Project | add_ors_to_project
Project Module | register_ors_client_project
\ 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