Re: functions missing from django.utils.translation

2007-07-26 Thread Peter Baumgartner
On 7/26/07, Peter Baumgartner <[EMAIL PROTECTED]> wrote:
>
> I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't
> recognize (ImportError) the following functions from
> django.utils.translation:  ugettext, ungettext, deactivate_all
>
> I've redownloaded django, checked permissions, and verified the functions
> do actually exist in the source.


One thing I didn't do was confirm that my local django repo was in fact the
one that was being linked to site-packages. It wasn't. Once I got that
worked out, things were fine.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: functions missing from django.utils.translation

2007-07-26 Thread Malcolm Tredinnick

On Thu, 2007-07-26 at 12:06 -0600, Peter Baumgartner wrote:
> I'm running revision 5765 on a CentOS in Python 2.4.3 and it doesn't
> recognize (ImportError) the following functions from
> django.utils.translation:  ugettext, ungettext, deactivate_all
> 
> I've redownloaded django, checked permissions, and verified the
> functions do actually exist in the source. Why wouldn't these
> functions be recognzied? Here is the output of
> help( django.utils.translation) on that box.

Very odd. Your output doesn't show the bit I wanted to see. Can you
check that the top part of django/utils/translation/__init__.py looks
like this:

__all__ = ['gettext', 'gettext_noop', 'gettext_lazy', 'ngettext',
'ngettext_lazy', 'string_concat', 'activate', 'deactivate',
'get_language', 'get_language_bidi', 'get_date_formats',
'get_partial_date_formats', 'check_for_language', 'to_locale',
'get_language_from_request', 'install', 'templatize', 'ugettext',
'ungettext', 'deactivate_all']

Note that the functions you are having problems with are listed at the
end of this list.

Also, where are you doing that raises the ImportError? Clearly importing
django.utils.translation doesn't do it, since you can display the help.
So what is the trigger? Just for reference, I'm running Django on one
old CentOS box that has Python 2.3 installed without problems.

Regards,
Malcolm



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---