Re: #2217 - Filtering using objects rather than IDs

2006-06-30 Thread Russell Keith-Magee
Ok - consensus seems to be its a good idea. However, it turns out I was a little premature in my warning. It turns out that in order to catch all the edge cases of OneToOne fields, i've implemented a fix that allows both kinds of object references. So, under the new scheme, if a.id = 1:  Reporter.

Re: Cutting applications vertically, like multiple weblogs software

2006-06-30 Thread Malcolm Tredinnick
Hi Ahmad, On Fri, 2006-06-30 at 09:49 -0700, Ahmad Alhashemi wrote: > Hello, > > Immagine that I created a weblog application. Then I decide to make it > accomodate multiple weblogs, by adding a weblog model and weblog_id to > all records in the application. > > Is there an easy way to achieve

Re: Multiple db branch: tests

2006-06-30 Thread Malcolm Tredinnick
On Fri, 2006-06-30 at 13:59 +, [EMAIL PROTECTED] wrote: > > I understand what you are wanting to do. I'm wondering why you can't > > create the dictionary inside runtests.py and then poke it inside > > settings.DATABASE? > > That's a good idea, I hadn't thought of that. Are there any objectio

Re: Unicodification of Django

2006-06-30 Thread Ivan Sagalaev
Bjørn Stabell wrote: > What if the patch required everything to be Unicode, meaning: > > * all programmers would have to become aware of Unicode to some extent > * all code would suffer the (minior) performance penalty of encoding > and decoding all text The second point is arguable. Currently

Cutting applications vertically, like multiple weblogs software

2006-06-30 Thread Ahmad Alhashemi
Hello, Immagine that I created a weblog application. Then I decide to make it accomodate multiple weblogs, by adding a weblog model and weblog_id to all records in the application. Is there an easy way to achieve this without having to change all the model code in the application? I mean so that

Re: #2217 - Filtering using objects rather than IDs

2006-06-30 Thread Tyson Tate
On Jun 30, 2006, at 5:04 AM, Russell Keith-Magee wrote: > ... > Reporter.objects.filter(article=a) > > ... > However, since this change could effect people in the field, I > thought I'd check for objections before I commit. > > Comments? > > Russ Magee %-) I'm +1 on this too. I've done it many

Re: Multiple db branch: tests

2006-06-30 Thread [EMAIL PROTECTED]
> I understand what you are wanting to do. I'm wondering why you can't > create the dictionary inside runtests.py and then poke it inside > settings.DATABASE? That's a good idea, I hadn't thought of that. Are there any objections to reserving the keys 'django_test_db_a' and 'django_test_db_b' in

Re: #2217 - Filtering using objects rather than IDs

2006-06-30 Thread Russell Keith-Magee
On 6/30/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: On Jun 30, 2006, at 7:04 AM, Russell Keith-Magee wrote:> However, since this change could effect people in the field, I> thought I'd check for objections before I commit.I'm +1 as long as looking up by ID still works as well.  In my mind, bot

Re: #2217 - Filtering using objects rather than IDs

2006-06-30 Thread Jacob Kaplan-Moss
On Jun 30, 2006, at 7:04 AM, Russell Keith-Magee wrote: > However, since this change could effect people in the field, I > thought I'd check for objections before I commit. I'm +1 as long as looking up by ID still works as well. In my mind, both of these should do exactly the same thing::

Re: #2217 - Filtering using objects rather than IDs

2006-06-30 Thread Jay Parlar
On 6/30/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > However, since this change could effect people in the field, I thought I'd > check for objections before I commit. > > Comments? I think that personally it will break one or two things for me, but it's a breakage I'm glad to deal wi

#2217 - Filtering using objects rather than IDs

2006-06-30 Thread Russell Keith-Magee
Hi all, I'm in the process of working on a fix for ticket #2217. The fix involves a slight change to the interpretation of one type of query argument.  To illustrate the change, consider the following three (almost identical) queries: Reporter.objects.filter(article__id__exact=1)Reporter.objects.f

Re: Unicodification of Django

2006-06-30 Thread Bjørn Stabell
Jacob Kaplan-Moss wrote: > On Jun 28, 2006, at 8:08 AM, Gábor Farkas wrote: > > let's imagine for a second that the unicode-django patch is done and > > available (it's not, but let's imagine it is) > > > > would there be a chance to get it applied? > > Obviously that would depend on the quality o

Fwd : NEW JOBS POSTED

2006-06-30 Thread Ritu
Hi Dear Members, FOLLOWING R THE NEW JOBS OF THE DAY : Sr. TIBCO Developer Peoplesoft Professionals self supporting trainee Sr.Software Developer ITES(bpo) IT(.net,asp,php) MNC BANKS Associate Software Developer Java Programmer Executives - Business Development HR Executive Siebel Pro

Vancouver Python Workshop

2006-06-30 Thread kevin
Hello Django Developers, For those of you in the pacific northwest (or those of you who'd like to visit the area), you may be interested in attending the Vancouver Python Workshop, which is coming up in just over a month: http://www.vanpyz.org/conference/ Although there are no Django talks line