Difference between revisions of "Features/Update Favorites"

From Sugar Labs
Jump to navigation Jump to search
(Created page with " See [https://github.com/walterbender/sugar/commit/81493640bb577fd0d94eb5b4d8bad718c1a2ad53]")
 
Line 1: Line 1:
 +
 +
 +
<noinclude>{{GoogleTrans-en}}{{TOCright}}
 +
[[Category:Feature Page Incomplete]]
 +
[[Category:Feature|UpdateFavorites]]</noinclude>
 +
 +
<!-- All fields on this form are required to be accepted.
 +
We also request that you maintain the same order of sections so that all of the feature pages are uniform.  -->
 +
 +
<!-- The actual name of your feature page should look something like: Features/Your Feature Name.  This keeps all features in the same namespace -->
 +
 +
== Summary ==
 +
 +
Add dbus service to update favorites.
 +
 +
== Owner ==
 +
* Name: [[User:Walter| Walter Bender]]
 +
* Email: <walter AT sl.o>
 +
 +
== Current status ==
 +
* Targeted release: (1.02)
 +
* Last updated: (5 November 2013)
 +
* Percentage of completion: 100%
  
 
See [https://github.com/walterbender/sugar/commit/81493640bb577fd0d94eb5b4d8bad718c1a2ad53]
 
See [https://github.com/walterbender/sugar/commit/81493640bb577fd0d94eb5b4d8bad718c1a2ad53]
 +
 +
== Detailed Description ==
 +
 +
Since multiple homeviews landed in Sugar 100, it would be nice to enable user-space updates to the homeviews.
 +
This requires a new dbus service. The idea is that Sugar activities, e.g., [[Activities/ShareFavorites]], could share favorites without requiring a reboot. So, for example, a teacher could share a desktop specific to a lesson plan.
 +
 +
== Benefit to Sugar ==
 +
 +
More ways to share configuration information in the classroom or among buddies w/o requiring a reboot.
 +
 +
== Scope ==
 +
In jarabe/view/service.py
 +
 +
    @dbus.service.method(_DBUS_SHELL_IFACE,
 +
                          in_signature='ssb', out_signature='')
 +
    def SetBundleFavorite(self, bundle_id, version, favorite):
 +
        bundleregistry.get_registry().set_bundle_favorite(
 +
            bundle_id, version, favorite)
 +
 +
== How To Test ==
 +
 +
Maximum instances:
 +
# Find an activity with maximum_participants set to > 1.
 +
# Try to join more than maximum_participants and observe an alert
 +
 +
== User Experience ==
 +
 +
The direct impact on the user will be that they don't have to reboot when receiving favorites from buddies.
 +
 +
== Dependencies ==
 +
 +
No new dependencies
 +
 +
== Contingency Plan ==
 +
 +
None.
 +
 +
== Documentation ==
 +
 +
== Release Notes ==
 +
 +
== Comments and Discussion ==
 +
* See [[{{TALKPAGENAME}}|discussion tab for this feature]]
 +
----
 +
[[Category:Features requested by OLPC AU]]

Revision as of 14:46, 5 November 2013



Summary

Add dbus service to update favorites.

Owner

Current status

  • Targeted release: (1.02)
  • Last updated: (5 November 2013)
  • Percentage of completion: 100%

See [1]

Detailed Description

Since multiple homeviews landed in Sugar 100, it would be nice to enable user-space updates to the homeviews. This requires a new dbus service. The idea is that Sugar activities, e.g., Activities/ShareFavorites, could share favorites without requiring a reboot. So, for example, a teacher could share a desktop specific to a lesson plan.

Benefit to Sugar

More ways to share configuration information in the classroom or among buddies w/o requiring a reboot.

Scope

In jarabe/view/service.py

    @dbus.service.method(_DBUS_SHELL_IFACE,
                         in_signature='ssb', out_signature=)
    def SetBundleFavorite(self, bundle_id, version, favorite):
        bundleregistry.get_registry().set_bundle_favorite(
            bundle_id, version, favorite)

How To Test

Maximum instances:

  1. Find an activity with maximum_participants set to > 1.
  2. Try to join more than maximum_participants and observe an alert

User Experience

The direct impact on the user will be that they don't have to reboot when receiving favorites from buddies.

Dependencies

No new dependencies

Contingency Plan

None.

Documentation

Release Notes

Comments and Discussion