[Bugs] #1358 UNSP: Changes to a Journal entries metadata are wiped if edited while Activity entry is currently instantiated
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Feb 3 07:13:03 EST 2010
#1358: Changes to a Journal entries metadata are wiped if edited while Activity
entry is currently instantiated
------------------------------------------+---------------------------------
Reporter: garycmartin | Owner: erikos
Type: defect | Status: assigned
Priority: Unspecified by Maintainer | Milestone: 0.88
Component: sugar-toolkit | Version: 0.82.x
Severity: Blocker | Keywords: r?
Distribution: Unspecified | Status_field: Assigned
------------------------------------------+---------------------------------
Comment(by erikos):
The above patch lets the DSObject listen for the updates to the object. To
only listen for changes to a specific object is done by adding the arg0
argument to the dbus connect call. The DSMetadata associated with that
object is then updated. On property changes in the DSMetadata a gobject
signal is emmitted, on which the activity base class is already listening
on (at the moment it only listens for the title to change).
The patch adds the "add_update_listener()" since when creating a new
DSObject the ID is None. The ID is only set after datastore entry is
created. Actaully one could so that as well write call in the datastore.py
One interesting thing about the patch is, that it can be easily back
ported to 0.84, or even 0.82.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1358#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list