Found another way...

In the form either passed on instiantion or in initProperties set the
CxnFile and CxnName properties.  Paul, I know that this will update
self.Connection to the appropriate connection but will setting the
CxnFile add all the connections in the file to the application?

Cheers,

Nate L.

On Jan 7, 2008 12:06 PM, johnf <[EMAIL PROTECTED]> wrote:
> On Monday 07 January 2008 10:58:38 am Paul McNett wrote:
> > Nate Lowrie wrote:
> > > I feel dumb but I can't find the spot in the source this occurs.  I've
> > > always defined a connection manually.  How do I open the cnxml file
> > > and load a connection?
> >
> > Try:
> >
> >
> > """
> > from dabo.lib.connParser import importConnections
> >
> > cxns = importConnections('./my.cnxml')
> > print cxns
> >
> > """
> >
> >
> > Paul
>
> or
> def createBizobjs(self):
>                 try:
>                         self.conn = 
> self.Application.getConnectionByName("DeanConn")
>                 except:
>                         
> self.Application.addConnectFile("DeanConnection.cnxml")
>                         self.conn = 
> self.Application.getConnectionByName("DeanConn")
>
> --
> John Fabiani
>
>
[excessive quoting removed by server]

_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to