Ed,

My beta tester just found something saucy. I set up related child tables in 
initProperties() like so:

"""
  148     self.bizSubopenings = 
ProductionOrderSubopenings(self.Application.dbConnection)
  149     self.bizVerticalDividers = 
VerticalDividers(self.Application.dbConnection)
  150     self.bizHorizontalDividers = 
HorizontalDividers(self.Application.dbConnection)
  151     self.bizOpeningFrames = 
ProductionOrderOpeningFrames(self.Application.dbConnection)
  152     self.bizOpeningStyles = OpeningStyles(self.Application.dbConnection)
  153     self.bizShapeEffect = ShapeEffect(self.Application.dbConnection, 
ParentLinkField="shape_id")
  154     self.addChild(self.bizSubopenings)
  155     self.addChild(self.bizVerticalDividers)
  156     self.addChild(self.bizHorizontalDividers)
  157     self.addChild(self.bizOpeningFrames)
  158     self.addChild(self.bizOpeningStyles)
  159     self.addChild(self.bizShapeEffect)
  160
  161     self.bizFrames = Frames(self.Application.dbConnection)
  162     self.bizFrames_all = Frames_all(self.Application.dbConnection)
  163     self.bizSBSProductList = SBSProductList(self.Application.dbConnection)
  """

The 3 at the end are basically lookup tables used by the bizOpenings code as 
needed. 
bizShapeEffect is a related child table (but on the shape_id field instead of 
the 
pk). I use bizShapeEffect internally and it automatically stays in sync because 
of 
the child relationship.

However, it also gets its related records deleted when the opening is deleted, 
which 
is bad because a ShapeEffect record should only be deleted when its parent 
*shape* is 
deleted, and not in this case when the opening is deleted.

I want kons.REFINTEG_CASCADE for all child bizobj's *except* this one, but 
there 
doesn't appear to be a way.

Ideas?

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]

Reply via email to