From fc4b6a64cc06bb35328835a382c14a8af542d20c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 21 Mar 2011 19:53:04 +0000 Subject: FLAG DAY: passing TurtleWindow instead of LogoCode instance as 1st argument --- (limited to 'pysamples/save_heap_to_journal_entry.py') diff --git a/pysamples/save_heap_to_journal_entry.py b/pysamples/save_heap_to_journal_entry.py index 2589164..96ac845 100644 --- a/pysamples/save_heap_to_journal_entry.py +++ b/pysamples/save_heap_to_journal_entry.py @@ -22,7 +22,7 @@ # palette is selected. -def myblock(lc, title): +def myblock(tw, title): ########################################################################### # @@ -42,7 +42,7 @@ def myblock(lc, title): # Save JSON-encoded heap to temporary file heap_file = os.path.join(get_path(activity, 'instance'), str(title) + '.txt') - data_to_file(lc.heap, heap_file) + data_to_file(tw.lc.heap, heap_file) # Create a datastore object dsobject = datastore.create() -- cgit v0.9.1