dabo Commit
Revision 6745
Date: 2011-08-06 04:37:54 -0700 (Sat, 06 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6745
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Fix r6665 issue not fully working on empty data set when NoRecordsException
is raised before FieldNotFoundException exception.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2011-08-06 11:25:02 UTC (rev
6744)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2011-08-06 11:37:54 UTC (rev
6745)
@@ -482,6 +482,11 @@
dabo.log.info(_("DataSource
'%s' does not inherit from a proper Dabo class. This may result in unsupported
problems.") % ds.__repr__())
else:
self._srcIsBizobj =
isinstance(ds, dabo.biz.dBizobj)
+ # This allow to use bizobj attribute as data
field, instead of table field.
+ # Also fix r6665 issue when NoRecordsException
is raised before FieldNotFoundException exception.
+ # It's tricky, because object
attribute/property takes precedence before data field of the same name.
+ if self._srcIsBizobj:
+ self._srcIsBizobj = not
hasattr(self.__src, self.DataField)
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/[email protected]