On Jan 8, 2008, at 6:15 PM, Nate Lowrie wrote:

> I have a bizobj that is a standard bizobj.  Here's the code.
>
> class CustomerBizobj(dabo.biz.dBizobj):
>       def afterInit(self):
>               self.addFrom("customers")
>               self.addField("LastName")
>               self.addField("FirstName")
>               self.addField("Address")
>               self.addField("City")
>               self.addField("State")
>               self.addField("ZipCode")
>               self.addField("ID")
>               
>               self.KeyField = "ID"
>               self.NonUpdateFields=["ID"]

        Looking through the code, I'm wondering if this is a capitalization  
issue. The code to check for changed records looks for the value of  
the PK field in the record, and if the cursor gets the field name  
back as "id", and you have KeyField set to "ID", it will never find  
the matching PK in the mementos.

        After you run new(), can you add a line and let me know what is  
printed out?

biz.new()
print biz.getDataSet(rows=1)[0].keys()


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




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to