Re: Need help w/ sql.where.WhereNode tree

2010-12-13 Thread Jonas H.
On 12/03/2010 03:06 PM, Jonas H. wrote: On 12/03/2010 10:04 AM, Waldemar Kornewald wrote: You probably don't want to use those aliases. Instead, you should use a separate alias namespace for embedded object filters. Otherwise you'll have to deal with the complex JOIN code in the backend unnecess

Re: Need help w/ sql.where.WhereNode tree

2010-12-03 Thread Jonas H.
On 12/03/2010 10:04 AM, Waldemar Kornewald wrote: You probably don't want to use those aliases. Instead, you should use a separate alias namespace for embedded object filters. Otherwise you'll have to deal with the complex JOIN code in the backend unnecessary. Aliases for embedded objects could j

Re: Need help w/ sql.where.WhereNode tree

2010-12-03 Thread Waldemar Kornewald
On Thu, Dec 2, 2010 at 5:03 PM, Jonas H. wrote: > On 12/01/2010 08:04 AM, Waldemar Kornewald wrote: >> >> In the end JOINs will be a rather complicated solution. I thought >> that's why you wanted to extend the ORM directly to handle embedded >> fields in a special way. That should be easier and c

Re: Need help w/ sql.where.WhereNode tree

2010-12-02 Thread Jonas H.
On 12/01/2010 08:04 AM, Waldemar Kornewald wrote: In the end JOINs will be a rather complicated solution. I thought that's why you wanted to extend the ORM directly to handle embedded fields in a special way. That should be easier and cleaner. That's what I'm up to, but I have to know how to re

Re: Need help w/ sql.where.WhereNode tree

2010-11-30 Thread Waldemar Kornewald
On Nov 30, 9:34 pm, "Jonas H." wrote: > Hello List! > > I'm working on queries on embedded objects for Django-nonrel (more > precisely, djangotoolbox) that will use JOIN-like syntax. > > For this, I need to know how to distinguish >    .filter(spam__op=eggs, foo__op=bar) > from >    .filter(spam__

Re: Need help w/ sql.where.WhereNode tree

2010-11-30 Thread Russell Keith-Magee
On Wed, Dec 1, 2010 at 4:34 AM, Jonas H. wrote: > Hello List! > > I'm working on queries on embedded objects for Django-nonrel (more > precisely, djangotoolbox) that will use JOIN-like syntax. > > For this, I need to know how to distinguish >  .filter(spam__op=eggs, foo__op=bar) > from >  .filter(

Need help w/ sql.where.WhereNode tree

2010-11-30 Thread Jonas H.
Hello List! I'm working on queries on embedded objects for Django-nonrel (more precisely, djangotoolbox) that will use JOIN-like syntax. For this, I need to know how to distinguish .filter(spam__op=eggs, foo__op=bar) from .filter(spam__op=eggs).filter(foo__op=bar) in the .where tree used