dabo Commit
Revision 4178
Date: 2008-06-25 12:58:11 -0700 (Wed, 25 Jun 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4178

Changed:
U   trunk/dabo/ui/dDataControlMixinBase.py

Log:
If the DataSource is set to a locally referenced bizobj as a string (i.e. 
'self.Form._myBizobj'), the object would be evaluated correctly by the _getSrc 
method but it wouldn't check to see if it's a bizobj.  This commit fixes that.

Also, if the DataSource is the name of a locally referenced object in a string 
and we can't eval it properly, we print an error message to the error log 
instead of suppressing it.

Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py      2008-06-24 18:09:16 UTC (rev 
4177)
+++ trunk/dabo/ui/dDataControlMixinBase.py      2008-06-25 19:58:11 UTC (rev 
4178)
@@ -381,7 +381,9 @@
                                                # it's a locally resolvable 
reference.
                                                try:
                                                        self.__src = eval(ds)
-                                               except: pass
+                                                       self._srcIsBizobj = 
isinstance(self.__src, dabo.biz.dBizobj)
+                                               except:
+                                                       
dabo.errorLog.write("Couldn't evaluate DataSource '%s'" % ds)
                                        else:
                                                # See if it's a RegID reference 
to another object
                                                try:




_______________________________________________
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