The new Djblets is out now, and should work around this problem.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Sun, Mar 28, 2010 at 1:21 PM, Christian Hammond <chip...@chipx86.com>wrote:

> Hi,
>
> That's interesting. We haven't encountered this, and have been running with
> this new code for a little while, but I'll go ahead and do a new Djblets
> 0.5.9 release that guarantees we don't pass unicode strings to these cache
> functions. Expect it within the hour.
>
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
> On Sun, Mar 28, 2010 at 4:23 AM, Vesterbaek <vesterb...@gmail.com> wrote:
>
>> The problem looks similar to this old django bug:
>> http://code.djangoproject.com/ticket/4845
>>
>> I had a look in my /usr/local/lib/python2.6/dist-packages/Django-1.1.1-
>> py2.6.egg/django/core/cache/backends/memcached.py
>>
>> In all functions, the key was wrapped by the django smart_str type,
>> except for
>> def incr(self, key, delta=1):
>>     return self._cache.incr(key, delta)
>> def decr(self, key, delta=1):
>>    return self._cache.decr(key, delta)
>>
>> I changed these to
>> def incr(self, key, delta=1):
>>    return self._cache.incr(smart_str(key), delta)
>>
>> def decr(self, key, delta=1):
>>    return self._cache.decr(smart_str(key), delta)
>>
>>  .. the upgrade now runs fine -- just to learn no evolution was
>> required :).
>>
>>  -- Jeppe
>>
>> --
>> Want to help the Review Board project? Donate today at
>> http://www.reviewboard.org/donate/
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> -~----------~----~----~----~------~----~------~--~---
>> To unsubscribe from this group, send email to
>> reviewboard+unsubscr...@googlegroups.com<reviewboard%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/reviewboard?hl=en
>>
>> To unsubscribe from this group, send email to reviewboard+
>> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
>> ME" as the subject.
>>
>
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

To unsubscribe from this group, send email to 
reviewboard+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to