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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
14662277
Commit
14662277
authored
Mar 01, 2023
by
Arnaud Fontaine
Committed by
Jérome Perrin
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zope4: Zelenium: Control_Panel.Products not available anymore and seems to be unused anyway.
parent
2c512e91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
product/Zelenium/tests/test_zuite.py
product/Zelenium/tests/test_zuite.py
+1
-2
product/Zelenium/zuite.py
product/Zelenium/zuite.py
+0
-21
No files found.
product/Zelenium/tests/test_zuite.py
View file @
14662277
...
@@ -702,8 +702,7 @@ class ZuiteTests( unittest.TestCase ):
...
@@ -702,8 +702,7 @@ class ZuiteTests( unittest.TestCase ):
user_agent
=
'unknown'
,
user_agent
=
'unknown'
,
remote_addr
=
'unknown'
,
remote_addr
=
'unknown'
,
http_host
=
'unknown'
,
http_host
=
'unknown'
,
server_software
=
'unknown'
,
server_software
=
'unknown'
)
product_info
=
zuite
.
_listProductInfo
())
zresults
.
_setObject
(
'suite.html'
zresults
.
_setObject
(
'suite.html'
,
File
(
'suite.html'
,
File
(
'suite.html'
,
'Test Suite'
,
'Test Suite'
...
...
product/Zelenium/zuite.py
View file @
14662277
...
@@ -375,10 +375,6 @@ class Zuite( OrderedFolder ):
...
@@ -375,10 +375,6 @@ class Zuite( OrderedFolder ):
,
reg
(
'SERVER_SOFTWARE'
,
'unknown'
)
,
reg
(
'SERVER_SOFTWARE'
,
'unknown'
)
)
)
result
.
_updateProperty
(
'product_info'
,
self
.
_listProductInfo
()
)
result
.
_setObject
(
'suite.html'
result
.
_setObject
(
'suite.html'
,
File
(
'suite.html'
,
File
(
'suite.html'
,
'Test Suite'
,
'Test Suite'
...
@@ -564,23 +560,6 @@ class Zuite( OrderedFolder ):
...
@@ -564,23 +560,6 @@ class Zuite( OrderedFolder ):
archive
.
close
()
archive
.
close
()
return
stream
.
getvalue
()
return
stream
.
getvalue
()
security
.
declarePrivate
(
'_listProductInfo'
)
def
_listProductInfo
(
self
):
""" Return a list of strings of form '%(name)s %(version)s'.
o Each line describes one product installed in the Control_Panel.
"""
result
=
[]
cp
=
self
.
getPhysicalRoot
().
Control_Panel
products
=
cp
.
Products
.
objectItems
()
products
.
sort
()
for
product_name
,
product
in
products
:
version
=
product
.
version
or
'unreleased'
result
.
append
(
'%s %s'
%
(
product_name
,
version
)
)
return
result
InitializeClass
(
Zuite
)
InitializeClass
(
Zuite
)
...
...
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