Mercurial > hg > Feedworm
diff 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 |
line wrap: on
line diff
--- a/backend/sqlalchemy/Preferences.py Sun Aug 21 03:55:16 2011 +0200 +++ b/backend/sqlalchemy/Preferences.py Sun Aug 21 04:04:37 2011 +0200 @@ -35,6 +35,12 @@ self.cache[key] = pref return pref + def commit(self): + self.session.commit() + + def rollback(self): + self.session.rollback() + def startMaximized(self): pref = self._cachedPreference(START_MAXIMIZED, False) return str2bool(pref.value)