dabo Commit
Revision 3230
Date: 2007-07-06 06:43:31 -0700 (Fri, 06 Jul 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3230
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Previously, you had to set the DataSource of a control to a string that the
form would then use to resolve to a bizobj; setting the DataSource to a direct
bizobj reference did not work.
This is a poor limitation, so I've removed it with this commit. Now you can set
a control's DataSource to a bizobj reference, and it will work just fine.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2007-07-06 13:17:33 UTC (rev
3229)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2007-07-06 13:43:31 UTC (rev
3230)
@@ -399,6 +399,8 @@
if not isinstance(ds, dObject):
# Warn about possible
unsupported behavior.
dabo.infoLog.write(_("DataSource '%s' does not inherit from dObject. This may
result in unsupported problems.") % ds)
+ else:
+ self._srcIsBizobj =
isinstance(ds, dabo.biz.dBizobj)
return self.__src
_______________________________________________
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]