Re: Ticket ping 3182

2007-04-23 Thread Joseph Perla
urce as a hobby. I would just like to make sure that at the next bug-squashing session by a developer with commit rights, this patch is checked in. Thank you, j On 4/23/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > > On 4/23/07, Joseph Perla <[EMAIL PROTECTED]> wrote:

Ticket ping 3182

2007-04-23 Thread Joseph Perla
Ping: simple, ready ticket #3182 is at 4 months and counting: http://code.djangoproject.com/ticket/3182 . Thank you, j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Are we dropping auto_now and auto_now_add for 1.0?

2007-04-06 Thread Joseph Perla
+1. Follows DRY. An AutoDateTimeField is very common. j On 4/6/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > > > seems like it should be as easy as a function in contrib somewhere: > [snip] > > Another option is a trivial field subclass:: > > class AutoDateTimeField(models.DateTimeFie

Re: Upcoming Django release, and the future

2007-03-08 Thread Joseph Perla
ne through, then others also were floating stagnant. j On 3/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-06 at 17:39 -0500, Joseph Perla wrote: > > They don't need to be in 0.96, but can someone at least check in the > > tickets already

Re: Upcoming Django release, and the future

2007-03-06 Thread Joseph Perla
They don't need to be in 0.96, but can someone at least check in the tickets already decided as ready for check-in? http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&stage=Ready+for+checkin Some of these have been complete and ready for 2 months. j On 3/6/07, Simon G.

cache.get_or_set()

2007-01-31 Thread Joseph Perla
Along the lines of get_or_create(), does it make sense to implement a get_or_set() function for quick caches? It can be used in this way: from django.core.cache import cache ... big_list = cache.get_or_set('big_list', lambda: BigItems.objects.all(), 60 * 60) to retrieve from cache or

extending the user model

2007-01-20 Thread Joseph Perla
Have you already decided on a simple, fast, non-deprecated, standard way of extending the User model? Last I remember, a ForeignKey(unique=True) was recommended, but that was kind of a hack due to the deprecation of the OneToOneField. j --~--~-~--~~~---~--~~ You re

Re: proposal: get_or_none QuerySet method

2006-12-20 Thread Joseph Perla
self or this or whatever it is in python/djangomanagers code. I'm also not sure how to do the crazy **kwargs stuff. The rest is clear: if you didn't create it, just update it, save it, and return. j On 12/20/06, Joseph Perla <[EMAIL PROTECTED]> wrote: There should also b

Re: proposal: get_or_none QuerySet method

2006-12-20 Thread Joseph Perla
There should also be an update_or_create() function. I often find myself get_or_creating, then updating the object's dict if it wasnt just created, then saving. This can easily be expressed more clearly in one line with this function. j On 12/20/06, Gary Wilson <[EMAIL PROTECTED]> wrote: Smi