I have more than one connection definition. My application gets data from 14 sources. Of these, several is using the same database definition (local databases for different locations). Since I want to add the data up from all the sources that are "the same", I need some sort of grouping functionality. I use this by letting the name begin with a certain word I can search for.
There is also another way I can do it: servers = [server for server in self.Application.dbConnectionDefs if server.Database="databasename"] ... and loop thru these. My connection file has several different databases too (including a local sqlite db for fast access to old data). -Simen -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul McNett Sent: 21. august 2006 15:34 To: Dabo Users list Subject: Re: [dabo-users] Grouping connection definitions. Simen Haugen wrote: > Hi. > > I have an application that needs to get data from several sites. The > databases are set up exactly the same, but contain data for that > department alone. > The way I handle grouping now is by starting the connection name by a > tag: > "Group1 site 1" > "Group1 site 2" > "Group1 site 3" > > "Group2 site1" > "Group2 site2" > > This way I do a .startswith() to find out what group it belongs to. > There is no problem with this approach, but if this is something more > people request, perhaps dabo can add a way of grouping connections? If you mean having the cnxml file able to hold more than one connection definition, it already does that. -- Paul McNett http://paulmcnett.com http://dabodev.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
