On Aug 21, 2006, at 11:48 AM, Paul McNett wrote:
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.
It's also nothing that is very common. Simen's original message
suggested that if this were something that others routinely did, it
could be added to the framework. My hunch is that it is a rather
specialized problem that shouldn't be a framework-level design.
My approach would be to add the current group and site as attributes
of dApp, and then override dApp.getConnectionByName() to use these
current values to determine the correct connection to return.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users