[gnome-games/sudoku-tube] Disable saving, temporarily
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] Disable saving, temporarily
- Date: Fri, 10 Jul 2009 23:32:28 +0000 (UTC)
commit a1505c2567340961c64fcf6c80acfc2ca53484f2
Author: Zhang Sen <zh jesse gmail com>
Date: Fri Jul 10 22:50:03 2009 +0800
Disable saving, temporarily
gnome-sudoku/src/lib/saver.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/saver.py b/gnome-sudoku/src/lib/saver.py
index e8458f0..6fe0a0b 100644
--- a/gnome-sudoku/src/lib/saver.py
+++ b/gnome-sudoku/src/lib/saver.py
@@ -48,7 +48,7 @@ def super_setattr (obj, attr, val):
def jar_game (ui):
jar = {} # what we will pickle
ui.timer.finish_timing()
- jar['game'] = ui.gsd.grid.to_string()
+ jar['game'] = ui.main_model.grid.to_string()
jar['trackers'] = ui.gsd.trackers
jar['tracking'] = ui.gsd.__trackers_tracking__
jar['notes'] = []
@@ -124,6 +124,7 @@ class SudokuTracker:
return gamestring.split('\n')[0].replace(' ', '')
def save_game (self, ui):
+ return
jar = jar_game(ui)
filename = os.path.join(self.save_path, self.get_filename(jar['game']))
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]