[Bugs] #2572 UNSP: sharing logic is broken
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Feb 2 10:11:34 EST 2011
#2572: sharing logic is broken
------------------------------------------+---------------------------------
Reporter: rgs | Owner: rgs
Type: enhancement | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Turtleart | Version: Unspecified
Severity: Unspecified | Keywords: turtle art clean up
Status_field: Unconfirmed | Distribution: Unspecified
Seeta_dev: |
------------------------------------------+---------------------------------
In my latest set of patches [1] I broke the sharing logic causing events
to be sent over even when we are not sharing. The sharing() method in
TurtleArt/tawindow.py needs to be reworked to adapt to our current
scenario of common sharing logic between our Sugar and Gnome code paths.
This bug also triggered another discussion, the logic to dispatch commands
and then send the event across the network is redundant and confusing. One
of the key points of confusion is the fact that each method in tacanvas
needs a share parameter to know if the command being ran is local or is
being executed on behalf of some other turtle in the network.
Upon discussion on #sugar an idea came up to simplify this logic and
centralize various actions related to command execution.
We could have a queue where all commands, local and remote, would be saved
to and then at some later point a command scheduler would be invoke to:
1) draw the command
2) notify turtles over the network of the executed command
3) perform logging
4) highlight the executed block
5) do some user configured action upon each command execution
[1] http://git.collabora.co.uk/?p=user/rgs/turtleart/.git;a=summary
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2572>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list