Ed Leafe wrote: > On Oct 27, 2008, at 11:58 AM, Paul McNett wrote: > >> In revision 4547, some child biz records aren't saving. I can't come >> up >> with a pattern, and it sometimes works. Prior to 4547, it always >> works. >> >> If I comment out the @remote above dBizobj.save(), the child records >> are >> always saved again. >> >> Ed, does this make any sense at all? > > > Not unless you have remote hosts set up. Can you trace through it, or > add some debugging, to verify that the correct calls are being made?
If I add the following print statement in biz.save() and biz.saveAll(): print "saveAll()", self, startTransaction And if I comment out the @remote in front of save(), run my app, open an order, open an opening, and then save the opening, here's the output: save <biz.openings.ProductionOrderOpenings (baseclass dabo.biz.dBizobj, id:159696332)> True saveAll <biz.subopenings.ProductionOrderSubopenings (baseclass dabo.biz.dBizobj, id:159696972)> False save <biz.subopenings.ProductionOrderSubopenings (baseclass dabo.biz.dBizobj, id:159696972)> False saveAll <biz.panels.ProductionOrderPanels (baseclass dabo.biz.dBizobj, id:159697612)> False save <biz.panels.ProductionOrderPanels (baseclass dabo.biz.dBizobj, id:159697612)> False saveAll <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False saveAll <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False save <biz.panels.ProductionOrderPanels (baseclass dabo.biz.dBizobj, id:159697612)> False saveAll <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159698252)> False saveAll <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159698892)> False If I uncomment @remote in front of save(), rerun my app, and open the same order and opening, and save, here's the output: save <biz.openings.ProductionOrderOpenings (baseclass dabo.biz.dBizobj, id:159708684)> True saveAll <biz.subopenings.ProductionOrderSubopenings (baseclass dabo.biz.dBizobj, id:159709324)> False save <biz.subopenings.ProductionOrderSubopenings (baseclass dabo.biz.dBizobj, id:159709324)> False saveAll <biz.panels.ProductionOrderPanels (baseclass dabo.biz.dBizobj, id:159709964)> False save <biz.panels.ProductionOrderPanels (baseclass dabo.biz.dBizobj, id:159709964)> False saveAll <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159710604)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159710604)> False save <biz.stiles.ProductionOrderPanelStiles (baseclass dabo.biz.dBizobj, id:159710604)> False saveAll <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159772716)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159772716)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159772716)> False save <biz.rails.ProductionOrderPanelRails (baseclass dabo.biz.dBizobj, id:159772716)> False Only 4 saveAll() calls instead of 6. Only 8 save() calls instead of 12. And isAnyChanged(), getChangedRows(), etc. shows that there are unsaved changes, and the _mementos dict is not empty for at least the ProductionOrderPanels biz. Paul _______________________________________________ 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/[EMAIL PROTECTED]
