[SQL-CVS] r1450 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-01-03 11:36:20
|
Author: phd
Date: 2006-01-03 11:35:21 +0000 (Tue, 03 Jan 2006)
New Revision: 1450
Modified:
SQLObject/trunk/sqlobject/main.py
Log:
A patch N 1356651 from the SF tracker.
Modified: SQLObject/trunk/sqlobject/main.py
===================================================================
--- SQLObject/trunk/sqlobject/main.py 2006-01-03 10:53:48 UTC (rev 1449)
+++ SQLObject/trunk/sqlobject/main.py 2006-01-03 11:35:21 UTC (rev 1450)
@@ -546,6 +546,10 @@
def delJoin(sqlmeta, joinDef):
soClass = sqlmeta.soClass
for join in sqlmeta.joins:
+ # previously deleted joins will be None, so it must
+ # be skipped or it'll error out on the next line.
+ if join is None:
+ continue
if joinDef is join.joinDef:
break
else:
|