Re: Test response context & template always as lists?

2007-07-15 Thread Russell Keith-Magee
On 7/15/07, Chris Heisel <[EMAIL PROTECTED]> wrote: > > I was actually going to re-work our custom testhelper a bit (clean up > some cruft) and send in a patch if folks would be interested in having > more custom assertions and helper functions on the TestCase class? I'm always interested in impr

Re: Proposal: QuerySet.exists() method

2007-07-15 Thread Tom Tobin
On 7/15/07, Tai Lee <[EMAIL PROTECTED]> wrote: > > I'd rather petition the PostgreSQL developers to optimise count(*) and > suggest Django users implement their own changes or workaround in the > meantime if they're working with large datasets where count(*) is a > serious performance penalty. Th

Re: Proposal: QuerySet.exists() method

2007-07-15 Thread Tai Lee
I'm also +1 __nonezero__ -1 .exists(). Using .count() already gives us the required functionality and makes logical sense, the only question then is how big of a performance gain do we get by using SELECT 1 LIMIT 1. SELECT 1 FROM [table] LIMIT 1 also feels kinda hackish to me, and I'm guessing it

Re: Test response context & template always as lists?

2007-07-15 Thread Chris Heisel
Slightly OT... We've got similar assertion functions on a custom testhelper at work and we haven't had any problem with the "sometimes you feel like a list, sometimes you don't" nature of test responses and test contexts. I was actually going to re-work our custom testhelper a bit (clean up some

Re: Test response context & template always as lists?

2007-07-15 Thread Russell Keith-Magee
On 7/15/07, oggie rob <[EMAIL PROTECTED]> wrote: > > 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 "templ

Re: development documentation

2007-07-15 Thread Russell Keith-Magee
On 7/15/07, Marc Garcia <[EMAIL PROTECTED]> wrote: > > Is there any django development documentation? I couldn't find any > document on how to start writting my own django add-on. All the documentation that exists is either in the Django source tree under /docs (which is what is displayed at djan

Re: development documentation

2007-07-15 Thread Malcolm Tredinnick
On Sun, 2007-07-15 at 10:56 +, Marc Garcia wrote: > Hi all! > > Is there any django development documentation? I couldn't find any > document on how to start writting my own django add-on. > > Of course I can start browsing code, and looking for other add-ons, > but may be there is a post in

development documentation

2007-07-15 Thread Marc Garcia
Hi all! Is there any django development documentation? I couldn't find any document on how to start writting my own django add-on. Of course I can start browsing code, and looking for other add-ons, but may be there is a post in this list about that, or a wiki page that I cannot found. Thinks t