Re: cache_detail crash

Albertas Agejevas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Thu, Sep 22, 2011 at 12:59:43PM +0400, Ruslan Mahmatkhanov wrote:
> Ok, this change works for me.
> 
> It should be applied against src/App/CacheManager.py.
> Would you mind to commit it?

>              REQUEST.RESPONSE.setHeader('Content-Type', 'text/plain')
> -            return '\n'.join('%6d %s'%(count, name) for count, name in detail)
> +            return '\n'.join('%s %6d'%(count, name) for count, name in detail)

This doesn't look right!  So count is %s, and name is %d?  Perhaps
their order in detail changed?

Albertas
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.