dabo Commit
Revision 3336
Date: 2007-09-02 11:34:15 -0700 (Sun, 02 Sep 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3336

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Added UserSQL to the properties that are synced with the bizobj's cursors.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2007-08-26 13:51:02 UTC (rev 3335)
+++ trunk/dabo/biz/dBizobj.py   2007-09-02 18:34:15 UTC (rev 3336)
@@ -66,6 +66,7 @@
                self._scanRestorePosition = True
                self._scanReverse = False
                self._SQL = ""
+               self._UserSQL = ""
                self._requeryOnLoad = False
                self._parent  = None
                self._autoPopulatePK = True
@@ -1502,6 +1503,7 @@
                        crs.AutoPopulatePK = self._autoPopulatePK
                        crs.AutoQuoteNames = self._autoQuoteNames
                        crs.Table = self._dataSource
+                       crs.UserSQL = self._userSQL
                        crs.VirtualFields = self._virtualFields
                        crs.Encoding = self.Encoding
                        crs.KeyField = self._keyField
@@ -1853,14 +1855,10 @@
 
 
        def _getUserSQL(self):
-               try:
-                       v = self._CurrentCursor.UserSQL
-               except AttributeError:
-                       v = None
-               return v
+               return self._userSQL
 
        def _setUserSQL(self, val):
-               self._CurrentCursor.UserSQL = val
+               self._CurrentCursor.UserSQL = self._userSQL = val
 
 
 




_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to