On Monday 07 April 2008 06:59:11 am Ed Leafe wrote:
> On Apr 7, 2008, at 8:55 AM, johnf wrote:
> >> Please show me
> >> the code that creates the bizobj in question.
> >>
> >> -- Ed Leafe
> >
> > class PublicagprodcostBizobj(dabo.biz.dBizobj):
> >     def afterInit(self):
> >             self.DataSource = "public.agprodcost"
> >             self.VirtualFields={'prodcostDescript':self.costtype}
>
> [snip]
>
>       This is the class definition; can you show me the code in which the
> bizobj is created?
>
> -- Ed Leafe
def createBizobjs(self):
        self.Application.addConnectFile("DeanConnection.cnxml")
        # This call will actually create the connection if it hasn't already
        # been made. If it has, it returns the existing connection, so that 
        # multiple connections aren't used up.
        self.conn = self.Application.getConnectionByName("DeanConn")
        self.super()
        import ProductionBizobj
        publicagproductionBizobj = 
ProductionBizobj.PublicagproductionBizobj(self.conn)
        self.addBizobj(publicagproductionBizobj)
        self.agproductionBizobj = self.getBizobj("public.agproduction")

        publicagprodcostBizobj = 
ProductionBizobj.PublicagprodcostBizobj(self.conn)
        self.addBizobj(publicagprodcostBizobj)
        self.agprodcostBizobj = self.getBizobj("public.agprodcost")
        self.agproductionBizobj.addChild(self.agprodcostBizobj)



-- 
John Fabiani


_______________________________________________
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