On Wednesday 09 January 2008 7:16 am, Adrian Klaver wrote:
> On Wednesday 09 January 2008 5:50 am, Ed Leafe wrote:
> > 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
>
> For what it is worth I noticed that there are two versions of
> SaveNewUnchanged. They differ in spelling. I am not at the computer with
> Dabo on it so I cannot call up both versions.
>
Oops I meant to say they differ in capitalization.
> Adrian Klaver
> [EMAIL PROTECTED]
--
Adrian Klaver
[EMAIL PROTECTED]
_______________________________________________
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]