comparison backend/sqlalchemy/Preferences.py @ 120:e830fa1cc7a2 backend

re-enabled PreferencesDialog
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 21 Aug 2011 04:04:37 +0200
parents 04a730f9d07d
children bb3c851b18b1
comparison
equal deleted inserted replaced
119:04a730f9d07d 120:e830fa1cc7a2
32 elif pref is None and addIfMissing: 32 elif pref is None and addIfMissing:
33 pref = Preference(key, str(defaultValue)) 33 pref = Preference(key, str(defaultValue))
34 self.session.add(pref) 34 self.session.add(pref)
35 self.cache[key] = pref 35 self.cache[key] = pref
36 return pref 36 return pref
37
38 def commit(self):
39 self.session.commit()
40
41 def rollback(self):
42 self.session.rollback()
37 43
38 def startMaximized(self): 44 def startMaximized(self):
39 pref = self._cachedPreference(START_MAXIMIZED, False) 45 pref = self._cachedPreference(START_MAXIMIZED, False)
40 return str2bool(pref.value) 46 return str2bool(pref.value)
41 47