Difference between revisions of "Summer of Code/2013/Social Sugar project"

From Sugar Labs
Jump to navigation Jump to search
(→‎Work done: Added work in progress for this week.)
(Add social id details)
Line 5: Line 5:
 
* added social_ids to BuddyModel, still working on integration to access them in group view.
 
* added social_ids to BuddyModel, still working on integration to access them in group view.
 
* reading about [https://developer.gnome.org/gobject/unstable/index.html GObject] and [http://python-gtk-3-tutorial.readthedocs.org/en/latest/objects.html Python GTK]
 
* reading about [https://developer.gnome.org/gobject/unstable/index.html GObject] and [http://python-gtk-3-tutorial.readthedocs.org/en/latest/objects.html Python GTK]
 +
 +
=== Adding social ids ===
 +
What are social ids?
 +
 +
Social IDs identify a user on external platforms uniquely.
 +
 +
To create mini profiles in group view, we can add a social_ids dictionary to BaseBuddy model in addition to other properties like nick and color. social_ids is a mapping of `service key` : `uid`.
 +
E.g. {'/desktop/sugar/user/social/project_sharing_website': '19348r93jfioaf', '/desktop/sugar/user/social/another_service': 'adfjafp1asdf'}
 +
 +
social_ids can be stored in gconf. As multiple social_ids are added, we will have a gconf file that looks like this:
 +
 +
<code language="xml">
 +
<gconf>
 +
    <entry name="color" mtime="1370907925" type="string">
 +
        <stringvalue>#FF8F00,#00A0FF</stringvalue>
 +
    </entry>
 +
    <entry name="nick" mtime="1370907925" type="string">
 +
        <stringvalue>Akshit Khurana</stringvalue>
 +
    </entry>
 +
</gconf>
 +
</code>
  
 
== TODO ==
 
== TODO ==

Revision as of 12:01, 18 June 2013

This page tracks the progress of Akshit Khurana's GSoC project: "Social Sugar". More details about the project can be found on proposal page.

Work done

  • checked out previous work done: on webservices, journalx and sugar-network.
  • added social_ids to BuddyModel, still working on integration to access them in group view.
  • reading about GObject and Python GTK

Adding social ids

What are social ids?

Social IDs identify a user on external platforms uniquely.

To create mini profiles in group view, we can add a social_ids dictionary to BaseBuddy model in addition to other properties like nick and color. social_ids is a mapping of `service key` : `uid`. E.g. {'/desktop/sugar/user/social/project_sharing_website': '19348r93jfioaf', '/desktop/sugar/user/social/another_service': 'adfjafp1asdf'}

social_ids can be stored in gconf. As multiple social_ids are added, we will have a gconf file that looks like this:

<gconf>

   <entry name="color" mtime="1370907925" type="string">
       <stringvalue>#FF8F00,#00A0FF</stringvalue>
   </entry>
   <entry name="nick" mtime="1370907925" type="string">
       <stringvalue>Akshit Khurana</stringvalue>
   </entry>

</gconf>

TODO

  • check how to add meta-data to buddies information
  • see how comments work and think which new methods we should need to get our "interactions" information

Code

socialsugar branch on my sugar fork on github.