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

m Adding social ids: formatting
Line 12: Line 12:


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`.
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'}
E.g. <code>{'/desktop/sugar/user/social/project_sharing_website': '19348r93jfioaf', '/desktop/sugar/user/social/another_service': 'adfjafp1asdf'}</code>


social_ids can be stored in gconf. As multiple social_ids are added, we will have a gconf file that looks like this:
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">
<code language="xml">
   <gconf>
   <gconf>