[SQLObject] patch for joinMethodName argument problem
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Cyril E. <cy...@de...> - 2004-09-01 14:00:55
|
Ian, The SVN 210 version has a bug that forbidden the use of joinMethodName, here is a patch that should correct that problem: --- joins.py Thu Jul 29 10:24:49 2004 +++ /usr/lib/python2.2/site-packages/sqlobject/joins.py Wed Sep 1 15:54:33 2004 @@ -27,6 +27,10 @@ return self._joinMethodName def withClass(self, soClass): + if self.kw.has_key('joinMethodName'): + self._joinMethodName = self.kw['joinMethodName'] + del self.kw['joinMethodName'] + return self.baseClass(soClass=soClass, joinMethodName=self._joinMethodName, **self.kw) Hope that helps Cyril Elkaim |