Changeset 3226
- Timestamp:
- 07/05/07 16:30:13 (2 years ago)
- Files:
-
- trunk/dabo/dPref.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/dPref.py
r3199 r3226 62 62 self._noneType = type(None) 63 63 self._typeDict = {int: "int", float: "float", long: "long", str: "str", unicode: "unicode", 64 bool: "bool", list: "list", tuple: "tuple", datetime.date: "date", 64 bool: "bool", list: "list", tuple: "tuple", datetime.date: "date", dict: "dict", 65 65 datetime.datetime: "datetime", self._noneType: "none"} 66 66 if crs is None: … … 178 178 elif typ == "bool": 179 179 ret = (val == "True") 180 elif typ in ("list", "tuple" ):180 elif typ in ("list", "tuple", "dict"): 181 181 ret = eval(val) 182 182 elif typ == "date": … … 470 470 print a.getPrefs(True) 471 471 472 473 472 zz=a.getSubPrefKeys() 474 473 print "SUB PREFS", zz … … 489 488 a.deleteAllPrefs() 490 489 print a.getPrefs(True) 491
