Paul,

I'm in the middle of training here at Rackspace, so the only Internet  
access I have is my phone. Can you tell me when dCursorMixin.new() is  
called, where that record gets added into the _mementos attribute?

-- Ed

Sent from my iPhone, so please excuse any top-posting.

On Jan 9, 2008, at 12:03 PM, "Nate Lowrie" <[EMAIL PROTECTED]>  
wrote:

> On Jan 9, 2008 6:50 AM, Ed Leafe <[EMAIL PROTECTED]> 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()
>
> This code prints out ['City', 'State', 'FirstName', 'Address',
> 'LastName', 'ZipCode', 'ID']
>
>
[excessive quoting removed by server]

_______________________________________________
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