Opened 11 years ago

Closed 7 years ago

#2093 closed defect (obsolete)

tamyblock not loaded

Reported by: walter Owned by: kandarpk
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Turtleart Version: Unspecified
Severity: Unspecified Keywords: sugar-love
Cc: smparrish, tonyforster Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

This was observed in Nicaragua: several teachers loaded Turtle Art 89 from USB. the Python sample code was not loaded into the Journal.

(Further: it would be worthwhile checking to see if the code already exists and if so, only reloading it if it has changed.)

Change History (7)

comment:1 Changed 10 years ago by seeta

  • Owner changed from walter to kandarpk
  • Status changed from new to assigned

comment:2 Changed 10 years ago by walter

A bit more detail:

tamyblock.py is a collection of sample Python code for use with the Import Python block within Turtle Blocks (the block with the Python icon on the red Extras palette). This block will import files with mime-type python and execute that code when the block is run as part of a Turtle Art program.

When Turtle Blocks is first launched, a copy of tamyblock.py, which is included in the .xo bundle, is copied into the Journal so that it is available to browse and modify with the Pippy program and to load into Turtle Blocks. Every time there is a new version of Turtle Blocks installed, a fresh copy of tamyblocks.py is copied to the Journal.

The two defects mentioned in this ticket are: (1) apparently sometimes the file is not copied into the Journal, resulting in no copy; and (2) the file is copied even when there is an unmodified copy already in the Journal, resulting in redundant copies.

Without any log files, it will be hard to resolve #1, unless there is some obvious mistake in the logic of the code (See lines 928-968 in TurtleArtActivity.py). In regard to #2, it would be reasonable to generate a hash from the new file, search the journal for the old file, generate another hash, and compare them. If the hash is the same, don't copy the file.

comment:3 Changed 10 years ago by smparrish

  • Cc smparrish added

comment:4 Changed 10 years ago by smparrish

  • seeta_dev set to Ishan

comment:5 Changed 10 years ago by tonyforster

From V104, py samples are loaded into the journal by the user, tamyblock.py is no longer needed. Close this ticket?

comment:6 Changed 10 years ago by tonyforster

  • Cc tonyforster added

comment:7 Changed 7 years ago by walter

  • Resolution set to obsolete
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.