dabo Commit
Revision 4040
Date: 2008-04-15 16:16:04 -0700 (Tue, 15 Apr 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4040

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

Log:
Commented out the raising of ValueError in getDataTypeForField(),
as I was getting lots of Dabo Error Log entries for virtual fields.

This matches the doc which says the function will return None if
there isn't any DataStructure information for the field.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2008-04-15 12:50:04 UTC (rev 4039)
+++ trunk/dabo/biz/dBizobj.py   2008-04-15 23:16:04 UTC (rev 4040)
@@ -1451,7 +1451,8 @@
                        fldInfo = [rec[1] for rec in ds
                                        if rec[0] == fld][0]
                except IndexError:
-                       raise ValueError, _("Field '%s' does not exist in the 
DataStructure") % fld
+                       return None
+                       #raise ValueError, _("Field '%s' does not exist in the 
DataStructure") % fld
                return dabo.db.getPythonType(fldInfo)
 
 




_______________________________________________
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