Err.. great suggestion... :) In fact the code you asked me about is a
view code. I added import of ugettext as _ to this view and voila! It
works. I misunderstood something and I thought that I have to put this
import somewhere to the test.

Thanks
Jakub

On 17 Sie, 15:46, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-08-17 at 06:33 -0700, eXt wrote:
> > Hi!
>
> > Here it is:http://code.djangoproject.com/ticket/2920
>
> > I've got a doctest that raises:
>
> > (part of traceback)
> > ...
> > msg = _('Password changed successfully.')
> > TypeError: 'bool' object is not callable
>
> Is this line part of the doctest or in other code? If it's part of the
> doctest, you probably won't be able to use _() and should use gettext()
> or ugettext() explicitly.
>
> Regards,
> Malcolm
>
> --
> Success always occurs in private and failure in full 
> view.http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to