On Wednesday 13 August 2008 08:51:29 pm Paul McNett wrote:
> johnf wrote:
> > I have a situation that I have never had in the past.  I have connections
> > to two databases (self.conn1 and self.conn2).  Will Dabo handle the saves
> > for both connections?  Currently to make it work I do not add the bizobj
> > and handle the inserts and the commit's in my code.  Of course I want
> > Dabo to handle the saves and I tried to use just self.Form.save().  I get
> > no errors or tracebacks.  But my Postgres log does not show a commit for
> > the second database.  Where and what should I look to find out the issue?
>
> You are calling self.Form.save() and expect dabo to save to a connection
> that there's no bizobj registered for?
No
>
> Each bizobj instance gets instantiated with a dConnection object. So
> each bizobj knows which connection to commit to. It shouldn't be a problem.
I guess I'll have to create a simple file and see if it works.  So far I don't 
think so.  I think I understand why it might not work for me.  I have no 
controls that use the second database.  I'm only inserting data (that 
retreive from the primaryBizobj.  I'll keep trying.

>
> But, if you expect self.Form.save() to work, self.Form needs to know
> about the bizobj(s) that it is supposed to save to.
No my test include the adding of the second bizobj

>
> Or are you saying that one bizobj has two connections? If so, then you
> are out of bounds with Dabo's design and will need to hand-code it.
>
> Paul
>
>
>
[excessive quoting removed by server]

_______________________________________________
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