Re: How to set the CURRENT_TIMESTAMP in a datetime field

2009-03-27 Thread Malcolm Tredinnick
On Fri, 2009-03-27 at 03:58 -0700, PyMan wrote: > Hi all guys. > > I tried to look for around a way to set a datetime field with the > CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything? You missed that this list is for the development of Django itself, not "how can I..." quest

Re: An idea (with full patch) for enhancing Meta.permissions behavior

2009-03-27 Thread Malcolm Tredinnick
On Fri, 2009-03-27 at 13:57 -0700, faldridge wrote: [...] > Though a small change, this is definitely one that requires a design > decision. I would greatly appreciate it if someone with authority > would let me know whether I should open a ticket for this patch or > not, and/or make any improvem

Re: GeometryField doesn't honor the required attribute

2009-03-27 Thread Fidel Ramos
On 27 mar, 19:49, Justin Bronn wrote: > Isn't the checking of `self.null` that you've identified as the > problem already in the `GeometryField.clean` method?  Are you > proposing a recursive call? > > I agree that GeometryField is ripe to be improved -- but I'm unclear > on exactly what is the p

An idea (with full patch) for enhancing Meta.permissions behavior

2009-03-27 Thread faldridge
I've got a patch for a slight behavior modification that I needed and that might be useful for others, and I wanted to collect some thoughts on it before I created a ticket. Twice now, I've come across a situation where the default Django behavior for inheriting permissions is inappropriate for m

Re: GeometryField doesn't honor the required attribute

2009-03-27 Thread Justin Bronn
On Mar 25, 12:20 pm, Fidel Ramos wrote: > My proposed solution would be to call Field's clean() instead of > checking self.null. Isn't the checking of `self.null` that you've identified as the problem already in the `GeometryField.clean` method? Are you proposing a recursive call? I agree th

Re: [GSoC] Proposal for discussion about Serialization requirements and requesting for Review

2009-03-27 Thread Madhusudan C.S
Hi Malcolm, On Fri, Mar 27, 2009 at 9:05 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-03-27 at 00:23 +0530, Madhusudan C.S wrote: > > Hi all, > > > > What a blunder :( I submitted my proposal the way I will > > have to submit to socghop.appspot.com with lines manuall

Re: Customizable User model as GSoC project

2009-03-27 Thread Richard Silver
This is one of the short-comings with the auth system. We needed to use an email address as username as well. Ugly process. On Fri, Mar 27, 2009 at 5:38 AM, zellyn wrote: > > On Mar 26, 7:54 pm, Edward Kaplan wrote: > > The situation in which the feature would have been useful to me was > > tha

Re: Customizable User model as GSoC project

2009-03-27 Thread zellyn
On Mar 26, 7:54 pm, Edward Kaplan wrote: > The situation in which the feature would have been useful to me was > that I needed to synchronize the User model in my project with Google > Apps.  Rewriting the default auth views seemed like overkill, as I > only wanted to override the set_password an

How to set the CURRENT_TIMESTAMP in a datetime field

2009-03-27 Thread PyMan
Hi all guys. I tried to look for around a way to set a datetime field with the CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything? Imagine some processes running on parallel servers: what when one process has to set a datetime field to "now" where "now" MUST BE set using the db