Re: Contextual autoescaping for Django templates

2011-06-21 Thread Luke Plant
On 21/06/11 20:07, Mike Samuel wrote: > I'd like to add contextual autoescaping to django templates. > > Briefly, it would automatically pick filters for each {{variable}} by > looking at the context in which it appears. So inside a

Re: Should postgresql cascade after truncate

2011-06-21 Thread Peter Russell
On Tue, Jun 21, 2011 at 8:43 PM, Ramiro Morales wrote: > That's what [1]ticket 11665 reports. So it does! I'd just hit the problem when I wrote my mail, and hadn't checked Trac yet. I guess I'll apply the patch and see if it solves my problem tomorrow. Thanks Peter -- You received this mess

Re: Should postgresql cascade after truncate

2011-06-21 Thread Ramiro Morales
On Tue, Jun 21, 2011 at 12:48 PM, Peter Russell wrote: > I've just been writing a test which checks that a delete() method > works correctly.  The test passes, but on closer inspection it should > have failed, because creating my object creates a second object which > is not being deleted.  In pri

Contextual autoescaping for Django templates

2011-06-21 Thread Mike Samuel
I'd like to add contextual autoescaping to django templates. Briefly, it would automatically pick filters for each {{variable}} by looking at the context in which it appears. So inside a

Re: Should postgresql cascade after truncate

2011-06-21 Thread Peter Russell
I have a different problem, but the solution to both might be the same. We use a lot of ForeignKeyFields with on_delete=models.DO_NOTHING, since we found the default cascade behaviour dangerous (it was too easy for one ill thought through delete to take out half the database). I've just been writ

Django and Windmill Javascript testing

2011-06-21 Thread mt
Hi All, This is a follow up to a recent thread on testing javascript in django with qunit http://groups.google.com/group/django-developers/browse_frm/thread/e0656d72e5e863d7 We did some work at the Djangocon.eu sprint on integration testing of Django with Windmill, which should be complementary t