Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples/save_heap_to_journal_entry.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-21 19:53:04 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-21 19:53:04 (GMT)
commitfc4b6a64cc06bb35328835a382c14a8af542d20c (patch)
treef9bf8fcab89ab16489de05142d06d482b6df6bea /pysamples/save_heap_to_journal_entry.py
parent1eede14372ceaaec094c55ca01f4c8f6dbfd0ab4 (diff)
FLAG DAY: passing TurtleWindow instead of LogoCode instance as 1st argument
Diffstat (limited to 'pysamples/save_heap_to_journal_entry.py')
-rw-r--r--pysamples/save_heap_to_journal_entry.py4
1 files changed, 2 insertions, 2 deletions
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()