Author: jacob
Date: 2008-08-25 07:58:18 -0500 (Mon, 25 Aug 2008)
New Revision: 8538

Modified:
   django/trunk/django/conf/__init__.py
Log:
Fixed #8242: handle `foo.*` consistantly in INSTALLED_APPS.


Modified: django/trunk/django/conf/__init__.py
===================================================================
--- django/trunk/django/conf/__init__.py        2008-08-25 12:57:24 UTC (rev 
8537)
+++ django/trunk/django/conf/__init__.py        2008-08-25 12:58:18 UTC (rev 
8538)
@@ -110,7 +110,9 @@
         for app in self.INSTALLED_APPS:
             if app.endswith('.*'):
                 appdir = os.path.dirname(__import__(app[:-2], {}, {}, 
['']).__file__)
-                for d in os.listdir(appdir):
+                app_subdirs = os.listdir(appdir)
+                app_subdirs.sort()
+                for d in app_subdirs:
                     if d.isalpha() and os.path.isdir(os.path.join(appdir, d)):
                         new_installed_apps.append('%s.%s' % (app[:-2], d))
             else:


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