dabo Commit
Revision 6297
Date: 2010-12-27 12:33:51 -0800 (Mon, 27 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6297
Changed:
U trunk/dabo/ui/dPemMixinBase.py
Log:
Few improvements in dictionary object handling.
Diff:
Modified: trunk/dabo/ui/dPemMixinBase.py
===================================================================
--- trunk/dabo/ui/dPemMixinBase.py 2010-12-27 20:28:19 UTC (rev 6296)
+++ trunk/dabo/ui/dPemMixinBase.py 2010-12-27 20:33:51 UTC (rev 6297)
@@ -67,8 +67,8 @@
# or Dabo is to provide it implicitly.
_explicitName = kwargs.get("_explicitName", False)
- if "Name" in kwargs.keys():
- if "_explicitName" not in kwargs.keys():
+ if "Name" in kwargs:
+ if "_explicitName" not in kwargs:
# Name was sent; _explicitName wasn't.
_explicitName = True
name = kwargs["Name"]
_______________________________________________
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]