Re: Amendment: Possible improvement to model API

2007-02-09 Thread Lawrence Oluyede
> > --- > > from django.models import field as _ > > > > Entry.objects.filter( > > _.headline.startswith('What')).exclude( > > _.pub_date>=datetime.now()).filter( > > _.pub_date>=datetime(2005, 1, 1)) > > Should be: > > Entry.objects.filter( > _.headline.startswith(

Problems with low level caching and locmem backend

2007-02-09 Thread Lawrence Oluyede
I'm trying to put in the cache a simple Python list made of unicode strings. The strange thing is locmem crashes badly during the first retrieval of a cache hit. The same code with the simple backend is like a breeze. I looked into locmem.py and simple.py backends and as the traceback states the

Re: Regarding the use of sha in contrib.auth

2007-02-09 Thread Lawrence Oluyede
> Good point. I did a quick test and the SHA-1 hashes are equivalent... I also tried with Python 2.3 [EMAIL PROTECTED] ~ % python2.3 [10:08] Python 2.3.5 (#1, Jan 13 2006, 20:13:11) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license"

Re: Patch to update django.utils.simplejson from 1.3 to 1.5

2007-01-19 Thread Lawrence Oluyede
> Jacob is working to get re-open available again. Thank you, and thank you Jacob :-) -- Lawrence http://www.oluyede.org/blog http://www.neropercaso.it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Re: Patch to update django.utils.simplejson from 1.3 to 1.5

2007-01-19 Thread Lawrence Oluyede
How can I reopen this ticket? http://code.djangoproject.com/ticket/3320 It's "ready for checkin" but "closed: invalid" also. It was closed with reason but now it has been fixed -- Lawrence http://www.oluyede.org/blog http://www.neropercaso.it --~--~-~--~~~---~--~--

Re: Patch to update django.utils.simplejson from 1.3 to 1.5

2007-01-18 Thread Lawrence Oluyede
Hmm, the testsuite failed. Any help in figuring out is appreciated! It was a problem with the imports. Now should run fine with this: http://code.djangoproject.com/attachment/ticket/3320/simplejson_1_5_new.diff -- Lawrence http://www.oluyede.org/blog http://www.neropercaso.it --~--~

Patch to update django.utils.simplejson from 1.3 to 1.5

2007-01-18 Thread Lawrence Oluyede
Is there any problem if the simplejson bundled with Django is updated with the last and just released version? I created a ticket with a diff: This should help people with Python 2.5 and Windows installation. I use python 2.5 myself but no Windows so

#921 - Add a "me" shortcut to UserFields

2007-01-03 Thread Lawrence Oluyede
http://code.djangoproject.com/ticket/921 I don't understand the meaning of this ticket. UserField is not a class in the model API, nor present in any place of the Django tree. Maybe is something that was later removed from Django? -- Lawrence http://www.oluyede.org/blog http://www.neropercaso.i