Author: mtredinnick
Date: 2008-08-24 22:26:37 -0500 (Sun, 24 Aug 2008)
New Revision: 8527

Modified:
   django/trunk/django/core/management/commands/compilemessages.py
Log:
Fixed #8491 -- Allow settings.LOCALE_PATH to be any sequence, not just a tuple.


Modified: django/trunk/django/core/management/commands/compilemessages.py
===================================================================
--- django/trunk/django/core/management/commands/compilemessages.py     
2008-08-25 03:17:06 UTC (rev 8526)
+++ django/trunk/django/core/management/commands/compilemessages.py     
2008-08-25 03:26:37 UTC (rev 8527)
@@ -9,10 +9,10 @@
     from sets import Set as set     # For Python 2.3
 
 def compile_messages(locale=None):
-    basedirs = (os.path.join('conf', 'locale'), 'locale')
+    basedirs = [os.path.join('conf', 'locale'), 'locale']
     if os.environ.get('DJANGO_SETTINGS_MODULE'):
         from django.conf import settings
-        basedirs += settings.LOCALE_PATHS
+        basedirs.extend(settings.LOCALE_PATHS)
 
     # Gather existing directories.
     basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))


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

Reply via email to