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
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
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
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
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.
>
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
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
7 matches
Mail list logo