Re: GSoC - denormalization model field proposal

2009-03-21 Thread Renato Garcia Pedigoni
I didn't know this project, Andrew, thank you. This is a very generic approach. Very nice. I figure out that to keep working with class attributes, and keeping the syntax clean, like I intended, there should be at least three fields (AggregationField, MirrorField and another one for the 'render htm

[GSoC] (Another) Denormalized fields proposal

2009-03-21 Thread Daniel Tang
Hi all, Quick intro: I'm Daniel, a first year PhD student in Computer Science at Purdue in good ol' Indiana (BS is also in Computer Science). I've never contributed to the actual Django framework, but I've done some amount of programming with Django and have subscribed to the mailing lists/RSS fe

Re: GSoC - denormalization model field proposal

2009-03-21 Thread Renato Garcia Pedigoni
Hello, Alex! > class Order(models.Model): >>... >>n_items = DenormalizedField(signal_from='itemorder', >> qs=self.itemorder_set.count()) >>total_price = DenormalizedField(signal_from='itemorder', >> qs=self.itemorder_set.sum('item_price')) >> >> > I see a few problems, a) s

Re: GSoC - denormalization model field proposal

2009-03-21 Thread Andrew Godwin
Alex Gaynor wrote: > > > class Order(models.Model): >... >n_items = DenormalizedField(signal_from='itemorder', > qs=self.itemorder_set.count()) >total_price = DenormalizedField(signal_from='itemorder', > qs=self.itemorder_set.sum('item_price')) > > >

Re: GSoC - denormalization model field proposal

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 6:46 PM, Renato Garcia Pedigoni < renatopedig...@gmail.com> wrote: > > Hi folks, > > My name is Renato, 21, currently studying Biomedical Informatics at > the University of São Paulo, Brazil. I'm submitting in the next week > my proposal to GSoC, to create a denormalized mo

GSoC - denormalization model field proposal

2009-03-21 Thread Renato Garcia Pedigoni
Hi folks, My name is Renato, 21, currently studying Biomedical Informatics at the University of São Paulo, Brazil. I'm submitting in the next week my proposal to GSoC, to create a denormalized model field, like discussed in http://groups.google.com/group/django-developers/browse_thread/thread/9a

Re: Serving static files with handler-specific sendfile()

2009-03-21 Thread mrts
A Ruby developer has a blog post on that: http://john.guen.in/svn/plugins/x_send_file/lib/ . No compromises there, :render => { :nothing => true } (don't return anything in the content). --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: [GSoC] Ticket #5929 (Previously Serialization Refactor)

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 23:16 +0530, Madhusudan C.S wrote: > Hi Malcolm and all, >Doesn't ticket #5929 (http://code.djangoproject.com/ticket/5929) > look very similar to what I proposed for Python? Allowing Python > built in complex datatype objects to be mapped to Relational > Database (which i

Re: defer() and only()

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 13:09 +0300, Ivan Sagalaev wrote: > Hello everyone! > > Just played with new defer() and only() and noticed that fields deferred > with only() aren't loaded when asked explicitly. I.e.: > > a = Article.objects.defer('text')[0] > a.text # <-- does a new query as e

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 2:25 PM, James Bennett wrote: > > On Sat, Mar 21, 2009 at 11:24 AM, Alex Gaynor > wrote: > > b) Having the admin be CSRF safe by default doesn't seam like a feature, > it > > feels like a bug, even if it's implementation gives everything a new > > feature. That's just my

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread James Bennett
On Sat, Mar 21, 2009 at 11:24 AM, Alex Gaynor wrote: > b) Having the admin be CSRF safe by default doesn't seam like a feature, it > feels like a bug, even if it's implementation gives everything a new > feature.  That's just my thoughts though. Personally I'd much rather have it actually *be* s

Re: Multiple Database API proposal

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 1:45 PM, Eric Florenzano wrote: > > > To me replication is a major use-case. I suspect most people who move > > beyond single server setup and beyond 10'000 - 20'000 visitors realize > > that replication should just be in place ensuring performance and > > redundancy. In m

Re: Minor bug in the documentation

2009-03-21 Thread Randy
... Hmm... good point, sorry, i'm a nub. > > Please file a ticket and upload a patch, docs changes go through the same > process as any code bug. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Eric Florenzano
> Too late now since it's already committed, but I've got some serious > reservations about this one. More development effort should have gone > into improving and refactoring the middleware before it got > automatically enabled. I agree with James here. With apologies to Luke, the CSRF middlewa

Re: Minor bug in the documentation

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 1:45 PM, Randy wrote: > > Just looking over the documentation for the release process and > noticed a small word duplication: > > Index: release-process.txt > === > --- release-process.txt (revision 10112) > +

Minor bug in the documentation

2009-03-21 Thread Randy
Just looking over the documentation for the release process and noticed a small word duplication: Index: release-process.txt === --- release-process.txt (revision 10112) +++ release-process.txt (working copy) @@ -108,7 +108,7 @@

[GSoC] Ticket #5929 (Previously Serialization Refactor)

2009-03-21 Thread Madhusudan C.S
Hi Malcolm and all, Doesn't ticket #5929 (http://code.djangoproject.com/ticket/5929) look very similar to what I proposed for Python? Allowing Python built in complex datatype objects to be mapped to Relational Database (which includes lists, dictionaries and tuples)? May be an additional abstra

Re: Multiple Database API proposal

2009-03-21 Thread Eric Florenzano
> To me replication is a major use-case. I suspect most people who move > beyond single server setup and beyond 10'000 - 20'000 visitors realize > that replication should just be in place ensuring performance and > redundancy. In my experience other multi-DB patterns (those that covered > with `us

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 12:20 PM, Luke Plant wrote: > > Hi Adrian, > > On Saturday 21 March 2009 01:47:08 Adrian Holovaty wrote: > > > I've been traveling since Tuesday, and, shall we say, I'm not that > > excited about this being in the default middleware. In fact, I'm +1 > > for reverting this

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Luke Plant
Hi Adrian, On Saturday 21 March 2009 01:47:08 Adrian Holovaty wrote: > I've been traveling since Tuesday, and, shall we say, I'm not that > excited about this being in the default middleware. In fact, I'm +1 > for reverting this change and might even want to exercise the > benevolent dictator ve

hi

2009-03-21 Thread Amit Upadhyay
Hey, Checkout www.RemindMeSam.com . -- Amit Upadhyay Via - www.remindmesam.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@g

Re: [GSOC] Multiple Database API proposal

2009-03-21 Thread Ivan Sagalaev
Alex Gaynor wrote: > 8) Time permitting implement a few common replication patterns. I'm kind of not very excited with this point. To me replication is a major use-case. I suspect most people who move beyond single server setup and beyond 10'000 - 20'000 visitors realize that replication shoul

defer() and only()

2009-03-21 Thread Ivan Sagalaev
Hello everyone! Just played with new defer() and only() and noticed that fields deferred with only() aren't loaded when asked explicitly. I.e.: a = Article.objects.defer('text')[0] a.text # <-- does a new query as expected a = Article.objects.only('date')[0] a.text # <-- do