dabo Commit
Revision 5101
Date: 2009-03-01 18:40:41 -0800 (Sun, 01 Mar 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5101

Changed:
U   trunk/dabo/dApp.py

Log:
Cleamed up some old dict.has_key() constructs.


Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2009-03-02 02:39:25 UTC (rev 5100)
+++ trunk/dabo/dApp.py  2009-03-02 02:40:41 UTC (rev 5101)
@@ -978,8 +978,8 @@
                connections. If the name doesn't exist in self.dbConnectionDefs,
                then an exception is raised.
                """
-               if not self.dbConnections.has_key(connName):
-                       if self.dbConnectionDefs.has_key(connName):
+               if not connName in self.dbConnections:
+                       if connName in self.dbConnectionDefs:
                                ci = self.dbConnectionDefs[connName]
                                self.dbConnections[connName] = 
dabo.db.dConnection(ci)
                try:



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to