All pastes #754116 Raw Edit

DS API

public text v1 · immutable
#754116 ·published 2007-10-29 20:00 UTC
rendered paste body
15:17 < tomeu> m_stone:                                                                                                                                                        
http://dev.laptop.org/git?p=projects/datastore;a=blob;f=src/olpc/datastore/datastore.py;h=91bdb4a56529c5ff682a9d934b62048928b004c3;hb=HEAD                                     
15:18 < tomeu> m_stone: look at the methods annotated as dbus methods                                                                                                          
15:20 < tomeu> m_stone: this module wraps the dbus API:                                                                                                                        
http://dev.laptop.org/git?p=sugar;a=blob;f=sugar/datastore/datastore.py;h=0c2379d3938431e8ed796a1f2002d77ad4807a0a;hb=HEAD                                                     
15:20 < tomeu> m_stone: and the base Activity class does most of the work for activities that choose to                                                                        
               inherit from it (most of them)                                                                                                                                  
15:21 < tomeu> m_stone:                                                                                                                                                        
http://dev.laptop.org/git?p=sugar;a=blob;f=sugar/activity/activity.py;h=b3bbcba6bcd3ac04e76579359608a43c2e85490c;hb=HEAD                                                       
15:21 < tomeu> m_stone: activities just have to override the write_file() and read_file() methods                                                                              
15:22 < tomeu> m_stone: 'git-clone https://dev.laptop.org/~marco/edit-activity/' will get you a very                                                                           
               simple activity that implements those                                                                                                                           
                                                                                                                                                                               
                                                                                                                                                                               
                                                                                                                                                                               
                                                                                                                                                                               
http://dev.laptop.org/git?p=projects/datastore;a=blob;f=src/olpc/datastore/datastore.py;h=91bdb4a56529c5ff682a9d934b62048928b004c3;hb=HEAD                                     
http://dev.laptop.org/git?p=sugar;a=blob;f=sugar/datastore/datastore.py;h=0c2379d3938431e8ed796a1f2002d77ad4807a0a;hb=HEAD                                                     
http://dev.laptop.org/git?p=sugar;a=blob;f=sugar/activity/activity.py;h=b3bbcba6bcd3ac04e76579359608a43c2e85490c;hb=HEAD                                                       
git-clone https://dev.laptop.org/~marco/edit-activity/