On 10/26/11 8:36 AM, Rand Batchelder wrote:
> I am trying to debug an appwizard application.
> It is not saving new records.
> I am using an sqlite table with an autoincrement PK.
Sounds normal. Is it saving non-new records? IOW, is it doing UPDATE statements
when
you make a change to an existing record and select Actions|Save Changes?
Is it saving modified new records when you do Actions|New, modify the new
record in
some way, and select Actions|Save Changes?
> I can see the select statements on the console but not any INSERT statements.
> Are INSERT statments displayed on the console ?
When you have the dbActivityLog directed to the console, you should see all
UPDATE,
INSERT, SELECT, and DELETE statements.
dBizObj.SaveNewUnchanged defaults to False by default, so if the only thing
that's
changed in a new record is the PK, the record will not be saved to the backend.
One
of the things my personal subclasses do is:
class BaseBiz(dabo.biz.dBizobj):
def initProperties(self):
self.SaveNewUnchanged = True
I've personally found very few cases where I wouldn't want to save new
unchanged
records, and in those cases it makes more sense to me to handle them manually.
Not sure if this is your issue or not, but something to check.
Paul
_______________________________________________
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/[email protected]