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
_______________________________________________
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]