On Thursday 19 March 2009 01:07:28 pm Pedro Vale de Gato wrote: > dabo Commit > Revision 5137 > Date: 2009-03-19 13:07:28 -0700 (Thu, 19 Mar 2009) > Author: Pedro.Gato > Trac: http://trac.dabodev.com/changeset/5137 > > Changed: > U trunk/dabo/ui/uiwx/dControlItemMixin.py > > Log: > If the correct key is not present in the list of keys the default behaviour > was to raise an exception, which would result in semi-filled forms, log the > error, but continue. > > Diff: > Modified: trunk/dabo/ui/uiwx/dControlItemMixin.py > =================================================================== > --- trunk/dabo/ui/uiwx/dControlItemMixin.py 2009-03-18 10:44:10 UTC (rev > 5136) +++ trunk/dabo/ui/uiwx/dControlItemMixin.py 2009-03-19 20:07:28 UTC > (rev 5137) @@ -236,7 +236,7 @@ > invalidSelections = [] > > if invalidSelections: > - raise ValueError(_("Trying to set %s.Value to > these invalid > selections: %s") % (self.Name, invalidSelections)) > + dabo.errorLog.write(_("Trying to set %s.Value > to these invalid > selections: %s") % (self.Name, invalidSelections)) > > self._afterValueChanged() > else:
Wait a second that exception is by design. If it occurs then something is really wrong and I want to see the exception. What do others feel? -10 -- John Fabiani _______________________________________________ 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]
