Test response context & template always as lists?

2007-07-14 Thread oggie rob
Hi all, Playing around with the test client I found it frustrating that "context" can either be a single context or a list, depending on how the template is rendered. My feeling is they should always return lists. Likewise for the "template" field. I can see that no matter what there is a chance o

Re: New "raw save" functionality needs better documentation

2007-07-14 Thread Russell Keith-Magee
On 7/15/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > I just spotted the new "raw save" functionality added in > http://code.djangoproject.com/changeset/5658 . Aside from the fact > that (to my knowledge) this wasn't discussed on the mailing list and > seems to be a large enough addition that

Re: Proposal: customtags, a higher-level API for template tags

2007-07-14 Thread Tom Tobin
On 7/14/07, Brian Harring <[EMAIL PROTECTED]> wrote: > On Fri, Jul 13, 2007 at 11:19:53PM -0500, Tom Tobin wrote: > > > > On 7/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > > > A few comments (mostly questions) from an initial reading: > > > > 3) Regarding Brian Harring's #3453, the

Re: Patch vs checkin

2007-07-14 Thread Forest Bond
On Sat, Jul 14, 2007 at 05:19:57PM -0700, Brian Harring wrote: > On Fri, Jul 13, 2007 at 11:28:27PM -0500, Gary Wilson wrote: > > > > Brian Harring wrote: > > > On Wed, Jul 11, 2007 at 09:38:54AM -0500, Deryck Hodge wrote: > > >> For example: > > >> > > >> mkdir repos > > >> cd repos > > >> bzr in

Re: Patch vs checkin

2007-07-14 Thread Brian Harring
On Fri, Jul 13, 2007 at 11:28:27PM -0500, Gary Wilson wrote: > > Brian Harring wrote: > > On Wed, Jul 11, 2007 at 09:38:54AM -0500, Deryck Hodge wrote: > >> For example: > >> > >> mkdir repos > >> cd repos > >> bzr init > >> svn co http://code.djangoproject.com/svn/django/trunk/ django_trunk > >>

www.OutpatientSurgicare.com/video/

2007-07-14 Thread dvd_km
www.OutpatientSurgicare.com/video/ Outpatient Doctors Surgery Center is committed to offering the healthcare the community needs. We offer patients a meaningful alternative to traditional surgery. This state-of-the-art outpatient surgery center, located in the heart of Orange County, at 10900 Warn

Re: Proposal: customtags, a higher-level API for template tags

2007-07-14 Thread Brian Harring
On Fri, Jul 13, 2007 at 11:19:53PM -0500, Tom Tobin wrote: > > On 7/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > A few comments (mostly questions) from an initial reading: > > 3) Regarding Brian Harring's #3453, the type conversion logic is > redundant between his approach and min

New "raw save" functionality needs better documentation

2007-07-14 Thread Adrian Holovaty
I just spotted the new "raw save" functionality added in http://code.djangoproject.com/changeset/5658 . Aside from the fact that (to my knowledge) this wasn't discussed on the mailing list and seems to be a large enough addition that should have merited some discussion (it's a new argument to save

Re: Translated fields

2007-07-14 Thread Marc Garcia
As far as I can see, this project isn't working with latest version of django, and it's newforms... It's in the TODO list of the author http://code.google.com/p/i18ndynamic/issues/list but still not available. Solution is very close... :) On Jul 13, 1:47 am, Collin Grady <[EMAIL PROTECTED]> wrot

Re: Proposal: QuerySet.exists() method

2007-07-14 Thread Honza Král
On 7/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-07-13 at 16:22 -0500, Adrian Holovaty wrote: > > I'd like to add a QuerySet.exists() method, which would return True or > > False if the given QuerySet contains at least one record. This would > > be more efficient than qs.c

Re: Proposal: QuerySet.exists() method

2007-07-14 Thread Masida
Although Oracle doesn't have LIMIT, it does have ROWNUM which basically acts as a counter. So I think you should do: SELECT 1 FROM [table] WHERE [where] AND ROWNUM <= 1; When there are JOINS you probably have to put the original SELECT in a subquery of the ROWNUM <= 1 query. More info about ROWN

Re: Proposal: QuerySet.exists() method

2007-07-14 Thread David Larlet
2007/7/14, Gary Wilson <[EMAIL PROTECTED]>: > > James Bennett wrote: > > On 7/13/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > >> I'm biased, because I have an immediate need for this in a project, > >> but this seems general and useful enough for inclusion in QuerySet. > > > > Implementing the