Author: adrian
Date: 2009-03-12 23:45:11 -0500 (Thu, 12 Mar 2009)
New Revision: 10046

Modified:
   django/trunk/django/db/__init__.py
Log:
Improved the error message in case of an invalid DATABASE_BACKEND to ignore 
'.svn' directories in displaying the list of valid backends

Modified: django/trunk/django/db/__init__.py
===================================================================
--- django/trunk/django/db/__init__.py  2009-03-13 04:41:45 UTC (rev 10045)
+++ django/trunk/django/db/__init__.py  2009-03-13 04:45:11 UTC (rev 10046)
@@ -25,7 +25,8 @@
             backend_dir = os.path.join(__path__[0], 'backends')
             try:
                 available_backends = [f for f in os.listdir(backend_dir)
-                        if os.path.isdir(os.path.join(backend_dir, f))]
+                        if os.path.isdir(os.path.join(backend_dir, f))
+                        and not f.startswith('.')]
             except EnvironmentError:
                 available_backends = []
             available_backends.sort()


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

Reply via email to