Re: "Unsupressing" errors when called from templates

2009-10-22 Thread Peter Bengtsson
2009/10/22 bruno desthuilliers : > > > > On 21 oct, 16:00, Peter Bengtsson wrote: >> On 21 Oct, 14:29, bruno desthuilliers >> wrote:> On 21 oct, 15:05, Peter Bengtsson wrote: >> >> > a NotImplementedError would be more appropriate !-) >> >> I don't know what means > > oops, sorry - it's fren

Re: "Unsupressing" errors when called from templates

2009-10-22 Thread bruno desthuilliers
On 21 oct, 16:00, Peter Bengtsson wrote: > On 21 Oct, 14:29, bruno desthuilliers > wrote:> On 21 oct, 15:05, Peter Bengtsson wrote: > > > a NotImplementedError would be more appropriate !-) > > I don't know what means oops, sorry - it's french for "OT". > > > Did you actually tried with

Re: "Unsupressing" errors when called from templates

2009-10-21 Thread Peter Bengtsson
On 21 Oct, 14:29, bruno desthuilliers wrote: > On 21 oct, 15:05, Peter Bengtsson wrote: > > > Suppose I've got this code: > > > # template.html > > Info: {{ article_instance.count_words }} words > > > # models.py > > class Article(models.Model): > >    text = models.TextField() > >    def coun

Re: "Unsupressing" errors when called from templates

2009-10-21 Thread bruno desthuilliers
On 21 oct, 15:05, Peter Bengtsson wrote: > Suppose I've got this code: > > # template.html > Info: {{ article_instance.count_words }} words > > # models.py > class Article(models.Model): >    text = models.TextField() >    def count_words(self): >         raise AttributeError('debugging') a Not

Re: "Unsupressing" errors when called from templates

2009-10-21 Thread Peter Bengtsson
Found the ticket for it: http://code.djangoproject.com/ticket/11421 On 21 Oct, 14:17, Peter Bengtsson wrote: > UPDATE! > If I raise some other error inside the python code (e.g. ValueError) > it's not suppressed. > Seems a design error in Django. Will carry on this discussion > somewhere else. >

Re: "Unsupressing" errors when called from templates

2009-10-21 Thread Peter Bengtsson
UPDATE! If I raise some other error inside the python code (e.g. ValueError) it's not suppressed. Seems a design error in Django. Will carry on this discussion somewhere else. On 21 Oct, 14:05, Peter Bengtsson wrote: > Suppose I've got this code: > > # template.html > Info: {{ article_instance.c

"Unsupressing" errors when called from templates

2009-10-21 Thread Peter Bengtsson
Suppose I've got this code: # template.html Info: {{ article_instance.count_words }} words # models.py class Article(models.Model): text = models.TextField() def count_words(self): raise AttributeError('debugging') Then, when I render that page I get: Info: words When I want is