Commit 14662277 authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Jérome Perrin

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

parent 2c512e91
...@@ -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'
......
...@@ -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 )
......
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