Simen Haugen wrote:
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.

Sounds reasonable.


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.

That sounds like the Pythonic way to do it. I'm not sure that coming up with a Dabo way to group connection defs can possibly be simpler than the Pythonic way you are already using.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to