On Jun 28, 2007, at 12:02 PM, johnf wrote:

> This appears to fix the problem I was having with my inserts (my  
> special case
> where the field I want to exclude is not part of the table).  But I  
> think it
> is not respecting the NonUpdateField list.  I added a field that  
> exist in the
> table (backend table) to my NonUpdateField list and I can see that  
> it was
> still present in the insert statement.

        I've just done a bunch of testing with inserts and updates, and in  
all cases the code is respecting the bizobj setting for  
NonUpdateFields. Try this: modify this method of your dCursorMixin.py  
copy:

def getNonUpdateFields(self):
        if self.__nonUpdateFields is None:
                # They haven't been set yet
                self.__setNonUpdateFields()
        print "GETNON", self.nonUpdateFields
        return list(set(self.nonUpdateFields + self.__nonUpdateFields))

        That print statement should include your bizobj-defined non-update  
fields.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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