On Friday 22 June 2007 12:04, Paul McNett wrote:
> [EMAIL PROTECTED] wrote:
> > With no records in the parent (where 0=1) , the requeryAllChildren method
> > seems to throw an exception when the parent PK is None, so none of the
> > children tables are being requeried (i.e. cleared if current child
> > records exist)
>
> Even with Ed's latest commit?
Yes.
In dCursorMixin
def getFieldVal(self, fld, row=None):
                """ Return the value of the specified field in the current or 
specified 
row."""
                if self.RowCount <= 0:
                        raise dException.NoRecordsException, _("No records in 
the data set.")
                if row is None:
                        row = self.RowNumber

And self.RowCount=0 - the exception fires.

and the above is called from dBizobj
if self.IsAdding and self.AutoPopulatePK:
                        pk = None
                else:
                        pk = self.getPK()

pk=self.getPK() just makes a "return" instead of the next statement.   I think 
because of the exception in getFieldVal().

to restate the issue:
The bottom line is we want to clear the sceen of any parent or children 
records without the notification message.
-- 
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to