[Zope-dev] cache_detail crash

Ruslan Mahmatkhanov cvs-src at yandex.ru
Thu Sep 22 04:10:17 EST 2011


Albertas Agejevas wrote on 22.09.2011 13:05:
> 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

detail is looks like that:

[('AccessControl.users.User', 3),
  ('App.ApplicationManager.ApplicationManager', 3),
..... ]

So if the count still should go first, this patch should work.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CacheManager.py.diff.txt
Url: http://mail.zope.org/pipermail/zope-dev/attachments/20110922/b77f954a/attachment.txt 


More information about the Zope-Dev mailing list