Re: cache_detail crash
Ruslan Mahmatkhanov <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
Hanno Schlichting wrote on 22.09.2011 12:34: > On Thu, Sep 22, 2011 at 10:21 AM, Ruslan Mahmatkhanov<[email protected]> wrote: >> Can anybody reproduce this? > > Yes, it's a known bug reported at https://bugs.launchpad.net/zope2/+bug/838978 > > Patches are very welcome for this. > > Hanno Ok, this change works for me. It should be applied against src/App/CacheManager.py. Would you mind to commit it? -- Regards, Ruslan Tinderboxing kills... the drives. _______________________________________________ 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 )
CacheManager.py.diff.txt
(text/plain, 491 B)
--- CacheManager.py.orig 2011-09-22 12:52:48.000000000 +0400
+++ CacheManager.py 2011-09-22 12:56:54.000000000 +0400
@@ -102,7 +102,7 @@
if REQUEST is not None:
# format as text
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)
else:
# raw
return detail