dabo Commit
Revision 4929
Date: 2009-01-11 20:28:00 -0800 (Sun, 11 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4929
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
For performance reasons, we were storing an actual bizobj reference instead of
the DataSource string in the grid's DataSource property. This was interfering
with reloaded forms, since the bizobjs have to be changed. Now this performance
shortcut is only used if the bizobj is not remote.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2009-01-12 04:26:02 UTC (rev 4928)
+++ trunk/dabo/ui/uiwx/dGrid.py 2009-01-12 04:28:00 UTC (rev 4929)
@@ -3034,8 +3034,9 @@
if hasattr(form, "getBizobj"):
newDS = form.getBizobj(ds)
if isinstance(newDS, dabo.biz.dBizobj):
- # Store the reference
- self._dataSource = newDS
+ if not newDS.isRemote():
+ # Store the reference
if local
+ self._dataSource = newDS
return newDS
form = form.Form
return None
_______________________________________________
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]