Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
8967ca45
Commit
8967ca45
authored
Jan 31, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_jio&erp5: Make coding style test happy
See merge request
nexedi/slapos.core!599
parents
a5f0ef98
a104533c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
...Item/portal_components/test.erp5.testSlapOSCodingStyle.py
+0
-1
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Base_getStatusMonitorUrl.py
...l_skins/slapos_hal_json_style/Base_getStatusMonitorUrl.py
+1
-1
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
...ortal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
+1
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
View file @
8967ca45
...
...
@@ -230,7 +230,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_hal_json_style/ERP5Site_receiveGoogleCallback'
,
'slapos_hal_json_style/Event_getAcknowledgementDict'
,
'slapos_hal_json_style/InstanceTree_getConnectionParameterList'
,
'slapos_hal_json_style/InstanceTree_getMonitorParameterDict'
,
'slapos_hal_json_style/Item_getCurrentProjectTitle'
,
'slapos_hal_json_style/Item_getCurrentSiteTitle'
,
'slapos_hal_json_style/Login_edit'
,
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Base_getStatusMonitorUrl.py
View file @
8967ca45
...
...
@@ -7,7 +7,7 @@ try:
instance_tree
=
context
.
getSpecialise
()
connection_parameter_dict
=
instance_tree
.
InstanceTree_getMonitorParameterDict
()
connection_url
=
'&url=%s'
%
connection_parameter_dict
[
'url'
]
+
'&username=%s'
%
connection_parameter_dict
[
'username'
]
+
'&password=%s'
%
connection_parameter_dict
[
'password'
]
except
(
AttributeError
,
TypeError
)
as
e
:
except
(
AttributeError
,
TypeError
)
as
_
:
connection_url
=
''
if
context
.
getPortalType
()
==
"Instance Tree"
:
...
...
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHalJsonStyleSkins.py
View file @
8967ca45
...
...
@@ -49,7 +49,7 @@ class TestSlapOSHalJsonStyleMixin(SlapOSTestCaseMixinWithAbort):
instance_tree
=
context
.
getSpecialise
()
connection_parameter_dict
=
instance_tree
.
InstanceTree_getMonitorParameterDict
()
connection_url
=
'&url=%s'
%
connection_parameter_dict
[
'url'
]
+
'&username=%s'
%
connection_parameter_dict
[
'username'
]
+
'&password=%s'
%
connection_parameter_dict
[
'password'
]
except
(
AttributeError
,
TypeError
)
as
e
:
except
(
AttributeError
,
TypeError
)
as
_
:
connection_url
=
''
if
context
.
getPortalType
()
==
"Instance Tree"
:
return
base_url
+
'&query=portal_type:"Instance Tree" AND title:(%s)'
%
context
.
getTitle
()
+
connection_url
...
...
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