[Sugar-devel] friendview.py

2009-10-17 Thread Tim McNamara
Hi all,
Have just cloned http://git.sugarlabs.org/projects/sugar/repos/mainline and
have encountered a fixme in /sugar/src/jarabe/desktop/friendview.py:

def _buddy_activity_changed_cb(self, buddy, ps_activity=None):
if not ps_activity:
self._remove_activity_icon()
return

# FIXME: use some sort of unknown activity icon rather
# than hiding the icon?
name = self._get_new_icon_name(ps_activity)
if name:
self._activity_icon.props.file_name = name
self._activity_icon.props.xo_color = buddy.get_color()
if not self._activity_icon_visible:
self.append(self._activity_icon, hippo.PACK_EXPAND)
self._activity_icon_visible = True
else:
self._remove_activity_icon()

I am assuming something generic like a question mark would be fine. Where
should that file live? Is it okay in the core sugar directory?

Naturally, people will probably want to click on that question mark. Would
we be able to have a dialogue like Search for activity %s? % name, which
if accepted opens up Browse and searches http://activities.sugarlabs.org to
download it? This would be easiest if you can p2p file share activities...
I've played around a bit, but it doesn't look especially obvious.

Thoughts appreciated :)

timClicks
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] friendview.py

2009-10-17 Thread Benjamin M. Schwartz
Tim McNamara wrote:
 Naturally, people will probably want to click on that question mark. Would
 we be able to have a dialogue like Search for activity %s? % name, which
 if accepted opens up Browse and searches http://activities.sugarlabs.org to
 download it?

That would be about ten times better than the current behavior.

 This would be easiest if you can p2p file share activities...
 I've played around a bit, but it doesn't look especially obvious.

Yes, that would be, by far, even better.  It shouldn't be incredibly
difficult, since Telepathy provides us with a high-level file transfer
operation, but there's still some code required to (1) request the
transfer, (2) create a bundle if necessary, (3) transfer the bundle, (4)
install the bundle, and then (5) launch it.



signature.asc
Description: OpenPGP digital signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] friendview.py

2009-10-17 Thread Wade Brainerd
Yeah, P2P activity sharing would be awesome.

http://wiki.sugarlabs.org/go/Development_Team/Almanac/Activity_Bundles
says Activities are meant to be shared between children. If a child
doesn't have the activity, it is automatically transfered to the child
when he or she joins the shared activity. but I don't believe this
was ever implemented...?

-Wade

On Sat, Oct 17, 2009 at 9:35 AM, Benjamin M. Schwartz
bmsch...@fas.harvard.edu wrote:
 Tim McNamara wrote:
 Naturally, people will probably want to click on that question mark. Would
 we be able to have a dialogue like Search for activity %s? % name, which
 if accepted opens up Browse and searches http://activities.sugarlabs.org to
 download it?

 That would be about ten times better than the current behavior.

 This would be easiest if you can p2p file share activities...
 I've played around a bit, but it doesn't look especially obvious.

 Yes, that would be, by far, even better.  It shouldn't be incredibly
 difficult, since Telepathy provides us with a high-level file transfer
 operation, but there's still some code required to (1) request the
 transfer, (2) create a bundle if necessary, (3) transfer the bundle, (4)
 install the bundle, and then (5) launch it.


 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] friendview.py

2009-10-17 Thread Benjamin M. Schwartz
Wade Brainerd wrote:
 Yeah, P2P activity sharing would be awesome.
 
 http://wiki.sugarlabs.org/go/Development_Team/Almanac/Activity_Bundles
 says Activities are meant to be shared between children. If a child
 doesn't have the activity, it is automatically transfered to the child
 when he or she joins the shared activity. but I don't believe this
 was ever implemented...?

That's correct.  Automatic activity sharing has been the plan for years
now, but has never been implemented.  For a while this was because there
was no good way to transfer large files over Telepathy, but this has now
been resolved, and it is simply waiting on someone willing to dive in.



signature.asc
Description: OpenPGP digital signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] friendview.py

2009-10-17 Thread Eben Eliason
On Sat, Oct 17, 2009 at 9:40 AM, Wade Brainerd wad...@gmail.com wrote:
 Yeah, P2P activity sharing would be awesome.

 http://wiki.sugarlabs.org/go/Development_Team/Almanac/Activity_Bundles
 says Activities are meant to be shared between children. If a child
 doesn't have the activity, it is automatically transfered to the child
 when he or she joins the shared activity. but I don't believe this
 was ever implemented...?

Right.

To me, it sounds like the first step in building either of these
systems (automatic p2p transfer, download from browse) is figuring out
a way to publish the activity icon so that we DON'T have to show a
question mark. I would much rather show the icon for the activity that
the child doesn't have, and perhaps badge it in some way to indicate
that they don't yet have it.

This seems desirable regardless of which solution we choose to
download the activity.

Eben


 -Wade

 On Sat, Oct 17, 2009 at 9:35 AM, Benjamin M. Schwartz
 bmsch...@fas.harvard.edu wrote:
 Tim McNamara wrote:
 Naturally, people will probably want to click on that question mark. Would
 we be able to have a dialogue like Search for activity %s? % name, which
 if accepted opens up Browse and searches http://activities.sugarlabs.org to
 download it?

 That would be about ten times better than the current behavior.

 This would be easiest if you can p2p file share activities...
 I've played around a bit, but it doesn't look especially obvious.

 Yes, that would be, by far, even better.  It shouldn't be incredibly
 difficult, since Telepathy provides us with a high-level file transfer
 operation, but there's still some code required to (1) request the
 transfer, (2) create a bundle if necessary, (3) transfer the bundle, (4)
 install the bundle, and then (5) launch it.


 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel