Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/datastore/datastore.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-20 10:38:08 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-20 10:38:08 (GMT)
commit11c89d86c91d91de42a815f7715076494c33fa25 (patch)
tree70bcf1c48dc08a9814db0a6e865f487e6f515910 /sugar/datastore/datastore.py
parent04fc7047c2a640f731090839137f26cacc16094c (diff)
Put dates to work correctly on the journal, create a new journal entry when resuming a past entry.
Diffstat (limited to 'sugar/datastore/datastore.py')
-rw-r--r--sugar/datastore/datastore.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index 99fd230..9d65670 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -39,6 +39,9 @@ class DSObject(gobject.GObject):
self.metadata[key] = value
self.emit('updated')
+ def __delitem__(self, key):
+ del self.metadata[key]
+
def get_metadata(self):
return self._metadata