#4497 NORM Never A: RecordActivity: Improvements to design and efficiency of Tubes use

Zarro Boogs per Child bugtracker at laptop.org
Mon Oct 29 10:10:20 EDT 2007


#4497: RecordActivity: Improvements to design and efficiency of Tubes use
------------------------------+---------------------------------------------
  Reporter:  smcv             |       Owner:  erikb         
      Type:  defect           |      Status:  new           
  Priority:  normal           |   Milestone:  Never Assigned
 Component:  camera-activity  |     Version:                
Resolution:                   |    Keywords:  collaboration 
  Verified:  0                |  
------------------------------+---------------------------------------------

Comment(by smcv):

 The simplest and most conventional way is to call methods on the other
 objects. For an example, see the Connect activity.

 Its protocol is as follows:

 * one object per participant

 * signal Hello()
 (Emitted by each new participant when they join - a more conventional name
 would have been Joined, better yet would have been to watch for the
 DBusNamesChanged signal and omit this one)

 * method Welcome(aan: grid, as: ordered_bus_names) -> nothing
 (Called on the new participant in response to their Hello signal, to sync
 their idea of the game state with ours - with hindsight, this should
 probably have been called SetGameState)

 * signal Insert(n: column)
 (Emitted when a participant places a disc - other participants either
 accept the move, or ignore it if it's not their turn)

 Welcome is defined at http://dev.laptop.org/git?p=projects/connect-
 activity;a=blob;f=game.py;h=73bd323cb39ff72cec0e778340ed9b379f43bea1;hb=5337b3a54d1d5830418e1d2375f1502e612c9b7d#l105
 and called at http://dev.laptop.org/git?p=projects/connect-
 activity;a=blob;f=game.py;h=73bd323cb39ff72cec0e778340ed9b379f43bea1;hb=5337b3a54d1d5830418e1d2375f1502e612c9b7d#l157

 Also see the dbus-python tutorial (linked above).

-- 
Ticket URL: <https://dev.laptop.org/ticket/4497#comment:2>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list