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
Mikolaï Krol
erp5
Commits
1fc37201
Commit
1fc37201
authored
Mar 31, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation: fix pylint messages and enable coding style test
parent
0eab0c1a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
15 deletions
+14
-15
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Base_editConfiguration.py
...em/portal_skins/erp5_simulation/Base_editConfiguration.py
+1
-1
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_submitSolveDivergenceDialog.py
...s/erp5_simulation/Delivery_submitSolveDivergenceDialog.py
+5
-5
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_submitSolveDivergenceDialog.xml
.../erp5_simulation/Delivery_submitSolveDivergenceDialog.xml
+1
-1
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_updateSolveDivergenceDialog.py
...s/erp5_simulation/Delivery_updateSolveDivergenceDialog.py
+6
-6
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_updateSolveDivergenceDialog.xml
.../erp5_simulation/Delivery_updateSolveDivergenceDialog.xml
+1
-1
bt5/erp5_simulation/bt/skip_coding_style_test
bt5/erp5_simulation/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Base_editConfiguration.py
View file @
1fc37201
...
...
@@ -6,7 +6,7 @@
# - Implement validation of list fields
#
from
Products.ERP5Type.Message
import
translateString
from
Products.Formulator.Errors
import
ValidationError
,
FormValidationError
from
Products.Formulator.Errors
import
FormValidationError
request
=
context
.
REQUEST
...
...
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_submitSolveDivergenceDialog.py
View file @
1fc37201
...
...
@@ -28,15 +28,15 @@ for listbox_dict in listbox:
listbox_key
=
listbox_dict
[
'listbox_key'
]
line
=
[
x
for
x
in
line_list
if
x
.
getPath
()
==
listbox_key
][
0
]
uid
=
line
.
getUid
()
for
prop
erty
in
(
'solver'
,
'solver_configuration'
,
'delivery_solver'
,
'comment'
,):
value
=
listbox_dict
.
get
(
prop
erty
,
None
)
key
=
'field_listbox_%s_%s'
%
(
prop
erty
,
uid
)
for
prop
in
(
'solver'
,
'solver_configuration'
,
'delivery_solver'
,
'comment'
,):
value
=
listbox_dict
.
get
(
prop
,
None
)
key
=
'field_listbox_%s_%s'
%
(
prop
,
uid
)
request
.
form
[
key
]
=
request
.
other
[
key
]
=
value
if
prop
erty
==
'solver_configuration'
:
if
prop
==
'solver_configuration'
:
if
value
is
not
None
:
line
.
updateConfiguration
(
**
value
.
as_dict
())
else
:
line
.
setProperty
(
prop
erty
,
value
)
line
.
setProperty
(
prop
,
value
)
# if divergence solving is already ongoing and will be fixed by activities
if
line
is
None
:
...
...
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_submitSolveDivergenceDialog.xml
View file @
1fc37201
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
form_id=\'view\', listbox=
[]
, **kw
</string>
</value>
<value>
<string>
form_id=\'view\', listbox=
()
, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_updateSolveDivergenceDialog.py
View file @
1fc37201
request
=
context
.
REQUEST
request
=
context
.
REQUEST
from
Products.ERP5Type.Message
import
translateString
listbox
=
request
.
get
(
'listbox'
)
...
...
@@ -12,15 +12,15 @@ for listbox_key in listbox:
listbox_dict
=
listbox
[
listbox_key
]
line
=
[
x
for
x
in
line_list
if
x
.
getPath
()
==
listbox_key
][
0
]
uid
=
line
.
getUid
()
for
prop
erty
in
(
'solver'
,
'solver_configuration'
,
'delivery_solver'
,
'comment'
,):
value
=
listbox_dict
.
get
(
prop
erty
,
None
)
key
=
'field_listbox_%s_%s'
%
(
prop
erty
,
uid
)
for
prop
in
(
'solver'
,
'solver_configuration'
,
'delivery_solver'
,
'comment'
,):
value
=
listbox_dict
.
get
(
prop
,
None
)
key
=
'field_listbox_%s_%s'
%
(
prop
,
uid
)
request
.
form
[
key
]
=
request
.
other
[
key
]
=
value
if
prop
erty
==
'solver_configuration'
:
if
prop
==
'solver_configuration'
:
if
value
is
not
None
:
line
.
updateConfiguration
(
**
value
.
as_dict
())
else
:
line
.
setProperty
(
prop
erty
,
value
)
line
.
setProperty
(
prop
,
value
)
request
.
form
[
'your_dialog_updated'
]
=
'1'
# xhtml style Base_callDialogMethod does not redirected because of the listbox
...
...
bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_updateSolveDivergenceDialog.xml
View file @
1fc37201
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
form_id=\'view\', listbox=
[]
,**kw
</string>
</value>
<value>
<string>
form_id=\'view\', listbox=
()
,**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_simulation/bt/skip_coding_style_test
deleted
100644 → 0
View file @
0eab0c1a
1
\ 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