Re: ~Q broken?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 20:44 -0400, Steve Holden wrote: > Malcolm Tredinnick wrote: > > > > On Wed, 2008-07-16 at 10:12 -0700, serbaut wrote: > >> Consider the following equivalent queries based on the weblog model > >> from the documentation: > >> > >> Blog.objects.filter(name="myblog").exclude(

Re: ~Q broken?

2008-07-16 Thread Steve Holden
Malcolm Tredinnick wrote: > > On Wed, 2008-07-16 at 10:12 -0700, serbaut wrote: >> Consider the following equivalent queries based on the weblog model >> from the documentation: >> >> Blog.objects.filter(name="myblog").exclude(entry__body_text__contains="blah >> blah") >> Blog.objects.filter(Q(na

Re: would is_loggedin be better than is_anonymous?

2008-07-16 Thread Robert Coup
On Thu, Jul 17, 2008 at 1:51 AM, Nathan Hoover <[EMAIL PROTECTED]> wrote: > I'll second that. I work for a large (unfortunately non-django) commercial > web property and we have the same basic set of states - anonymous, known, > and authenticated. I think it's pretty common. > Its not that hard t

Re: How to add a new DB backend?

2008-07-16 Thread Ned Batchelder
I don't know much about this, but I suspect a huge issue will be the non-relational nature of CouchDB. All of the existing backends execute SQL statements against their databases. --Ned. http://nedbatchelder.com Malcolm Tredinnick wrote: > On Wed, 2008-07-16 at 17:29 -0400, Michael Miller wrot

Re: How to add a new DB backend?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 17:29 -0400, Michael Miller wrote: > Hi, > > I'm interested in building a couchDB backend for django. Is there > any documentation on how to start adding a new backend? The code is the documentation here (it's Python, so it's just executable pseudo-code, after all). :-)

How to add a new DB backend?

2008-07-16 Thread Michael Miller
Hi, I'm interested in building a couchDB backend for django. Is there any documentation on how to start adding a new backend? Thanks, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers"

Re: newforms-admin Status Update

2008-07-16 Thread Brian Rosner
On Jul 15, 2008, at 10:50 PM, Brian Rosner wrote: > The documentation is pretty much done. I would like for people to give > it some attention and shake out any problems. Not a big deal and can > be dealt with after a merge. The tutorial needs a bit of > newforms-admin love. I haven't touched it

Re: ~Q broken?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 13:15 -0700, serbaut wrote: > Thank you for your replies. > > > The problem is that the filter you specified was not returning the > > correct answer in 0.96. You're asking that Django returns an incorrect > > result to make your code faster. It's possible to give incorrect

Re: ~Q broken?

2008-07-16 Thread serbaut
Thank you for your replies. > The problem is that the filter you specified was not returning the > correct answer in 0.96. You're asking that Django returns an incorrect > result to make your code faster. It's possible to give incorrect results > very fast, but it's not something we want to suppo

Re: ANN: newforms-admin syntax change for inlines

2008-07-16 Thread Joost Cassee
Hi all, On 9 sep 2007, 14:36, "Honza Král" <[EMAIL PROTECTED]> wrote an example newforms-admin snippet that would programmatically add an inline: > class CommentOptions( models.Model ): >   enabled = models.Fireld() >   moderators = models.Field() >   ... > > for model, model_options in admin.si

Re: Generic relations and non-integer primary keys

2008-07-16 Thread Rudolph
> Well, that depends. Would you like the problem to be fixed or not? :-) > > Malcolm I can imagine that it will be complex to fix (lot's of field types). A note in the docs would be nice since an integer primary key is a requirement for generic relations. I've opened a ticket that adds this requi

Django events during OSCON

2008-07-16 Thread Michael Richardson
Hi everyone! I'm also posting this to django-users and I apologize for those of you who get this twice. Next week is OSCON in Portland, Oregon. For anybody attending OSCON, or anybody who's going to be in the greater Portland metropolitan area, here's a lineup of Django-related events: 1. Tue

Re: ~Q broken?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 10:46 -0700, serbaut wrote: > There is no m2m relation involved in the example. Yes, you're right. It's not many-to-many, but it is multi-valued. It's a reverse many-to-one, which means one blog maps to many entries. The logic for the query construction still stands. [...]

Re: ~Q broken?

2008-07-16 Thread serbaut
There is no m2m relation involved in the example. The model is (from http://www.djangoproject.com/documentation/db-api/): class Blog(models.Model): name = models.CharField(max_length=100) tagline = models.TextField() class Entry(models.Model): blog = models.ForeignKey(Blog) headl

Re: ~Q broken?

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 10:12 -0700, serbaut wrote: > Consider the following equivalent queries based on the weblog model > from the documentation: > > Blog.objects.filter(name="myblog").exclude(entry__body_text__contains="blah > blah") > Blog.objects.filter(Q(name="myblog") & > QNot(Q(entry__body

~Q broken?

2008-07-16 Thread serbaut
Consider the following equivalent queries based on the weblog model from the documentation: Blog.objects.filter(name="myblog").exclude(entry__body_text__contains="blah blah") Blog.objects.filter(Q(name="myblog") & QNot(Q(entry__body_text__contains="blah blah"))) # 0.96 Blog.objects.filter(Q(name=

Re: Generic relations and non-integer primary keys

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 01:13 -0700, Rudolph wrote: > The documentation for Generic Relations uses a PositiveIntegerField > for the "object-id". However some models might have a non-integer > field as a primary key, so it might be good to add a note to the > documentation that a different field typ

Re: Generic relations and non-integer primary keys

2008-07-16 Thread Luke Plant
On Wednesday 16 July 2008 09:13:21 Rudolph wrote: > The documentation for Generic Relations uses a PositiveIntegerField > for the "object-id". However some models might have a non-integer > field as a primary key, so it might be good to add a note to the > documentation that a different field type

Re: Results of Moscow local sprint (newforms-admin and Oracle pooling)

2008-07-16 Thread Matt Boersma
That's pretty cool! I've attempted this in the past, but always ended up with test case failures, and didn't see any speedups, so I abandoned it. I'll try this out when I have time. Could someone repackage it as a proper patch attached to ticket #7732? I think I'd rather see it folded into the

Re: Problems with concurrent DB access and get_or_create()

2008-07-16 Thread [EMAIL PROTECTED]
What version are you running, and what's the exact line you're using for get_or_create? --~--~-~--~~~---~--~~ 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

Young Couple Enjoying SEX at JUICE CENTER

2008-07-16 Thread rosy
HAI.. Guys this web site s very useful to you... How This site helps.. how to earn money form online.. In this site, you wil earn more than 1/- Rs per month its true ... just login this site and << EARN MONEY >> www.freeonlinedollers.blogspot.com www.free

XXX--Secret WEB CAMS at LADIES HOSTELS--XXX

2008-07-16 Thread rosy
HAI.. Guys this web site s very useful to you... How This site helps.. how to earn money form online.. In this site, you wil earn more than 1/- Rs per month its true ... just login this site and << EARN MONEY >> www.freeonlinedollers.blogspot.com www.free

Re: would is_loggedin be better than is_anonymous?

2008-07-16 Thread Nathan Hoover
I'll second that. I work for a large (unfortunately non-django) commercial web property and we have the same basic set of states - anonymous, known, and authenticated. I think it's pretty common. Regards, Nathan On Wed, Jul 16, 2008 at 6:48 AM, Joost Cassee <[EMAIL PROTECTED]> wrote: > > On 14 j

Re: would is_loggedin be better than is_anonymous?

2008-07-16 Thread Joost Cassee
On 14 jul 2006, 23:53, "SmileyChris" <[EMAIL PROTECTED]> wrote: > Hrm... > Will there ever be a difference between "user.is_anonymous" and "not > user.is_authenticated"? > If not (and I can't think of a reason), do we really need to keep > is_anonymous? I would like to present a case for such a d

Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39

2008-07-16 Thread hot anjali
Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djang

Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39

2008-07-16 Thread hot anjali
Glamour models & Fasion designing New look watch my profile http://www.geocities.com/cathrina39 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djang

Bleach 318

2008-07-16 Thread Bleach 318
Bleach 318 Bleach 318(Bleach 330), Air Gear 209,Naruto 409, One Piece 507,Hot manga Download The hottest mangas and the latest chapters Manga news, Most popular mangas, Latest mangas, Latest chapters http://english1.isoshu.com http://emanga1.isoshu.com --~--~-~--~~~-

Generic relations and non-integer primary keys

2008-07-16 Thread Rudolph
The documentation for Generic Relations uses a PositiveIntegerField for the "object-id". However some models might have a non-integer field as a primary key, so it might be good to add a note to the documentation that a different field type is needed if one of your models uses a non-integer primar