Uwe Grauer wrote:
> Paul McNett wrote:
>> Does revision 5204 (http://trac.dabodev.com/changeset/5204) change or fix 
>> your issue?
> 
> No, i get the same error with rev 5204.

Does this patch fix it? (untested):

{{{
Index: dCursorMixin.py
===================================================================
--- dCursorMixin.py     (revision 5236)
+++ dCursorMixin.py     (working copy)
@@ -2153,6 +2153,9 @@
                """ This method sets the appropriate filter for dependent child 
queries."""

                def getTableAlias(fromClause):
+                       if not fromClause.strip():
+                               return None
+
                        joinStrings = ["left join", "right join", "outer join", 
"inner join", "join"]
                        foundAlias = None
                        for joinString in joinStrings:
@@ -2166,6 +2169,9 @@
                        return foundAlias

                alias = getTableAlias(self.sqlManager._fromClause)
+               if not alias:
+                       # Use the old way (pre 2180) of using the Table 
(DataSource) property.
+                       alias = self.Table
                filtExpr = " %s.%s = %s " % (alias, fld, val)
                self.setChildFilterClause(filtExpr)
}}}

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to