Author: jpellerin
Date: 2006-07-19 13:09:32 -0500 (Wed, 19 Jul 2006)
New Revision: 3383

Modified:
   django/branches/multiple-db-support/django/db/backends/ansi/sql.py
Log:
[multi-db] Made some minor formatting/line-length adjustments

Modified: django/branches/multiple-db-support/django/db/backends/ansi/sql.py
===================================================================
--- django/branches/multiple-db-support/django/db/backends/ansi/sql.py  
2006-07-19 16:40:16 UTC (rev 3382)
+++ django/branches/multiple-db-support/django/db/backends/ansi/sql.py  
2006-07-19 18:09:32 UTC (rev 3383)
@@ -248,6 +248,7 @@
                     for rel_class, f in references_to_delete[model]:
                         table = rel_class._meta.db_table
                         if not self.table_exists(db, table):
+                            print "NO TABLE %s" % table
                             continue
                         col = f.column
                         r_table = opts.db_table
@@ -289,8 +290,11 @@
         statements = re.compile(r";[ \t]*$", re.M)
 
         # Find custom SQL, if it's available.
-        sql_files = [os.path.join(app_dir, "%s.%s.sql" % 
(opts.object_name.lower(), settings.DATABASE_ENGINE)),
-                     os.path.join(app_dir, "%s.sql" % 
opts.object_name.lower())]
+        sql_files = [os.path.join(app_dir, "%s.%s.sql" %
+                                  (opts.object_name.lower(),
+                                   settings.DATABASE_ENGINE)),
+                     os.path.join(app_dir, "%s.sql" %
+                                  opts.object_name.lower())]
         for sql_file in sql_files:
             if os.path.exists(sql_file):
                 fp = open(sql_file)
@@ -324,7 +328,8 @@
         for klass in models.get_models():
             for f in klass._meta.fields:
                 if f.rel:
-                    self.references.setdefault(f.rel.to, []).append((klass, f))
+                    self.references.setdefault(f.rel.to,
+                                               []).append((klass, f))
         return self.references
 
     def get_table_list(self, db):


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to