Commit 587b3336 authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4: Zelenium: Control_Panel.Products not available anymore and seems to be unused anyway.

parent 3a4affb3
......@@ -702,8 +702,7 @@ class ZuiteTests( unittest.TestCase ):
user_agent='unknown',
remote_addr='unknown',
http_host='unknown',
server_software='unknown',
product_info=zuite._listProductInfo())
server_software='unknown')
zresults._setObject( 'suite.html'
, File( 'suite.html'
, 'Test Suite'
......
......@@ -375,10 +375,6 @@ class Zuite( OrderedFolder ):
, reg( 'SERVER_SOFTWARE', 'unknown' )
)
result._updateProperty( 'product_info'
, self._listProductInfo()
)
result._setObject( 'suite.html'
, File( 'suite.html'
, 'Test Suite'
......@@ -564,23 +560,6 @@ class Zuite( OrderedFolder ):
archive.close()
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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment