Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readdialog.py
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-08-05 18:00:28 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-08-05 18:00:28 (GMT)
commit9dc4ad107a90811ae3b000f9d84536604d865893 (patch)
tree06743a4b1f5ea021f3b6f0e006148464d0491bba /readdialog.py
parent98e358b9f712aa02a86e076387e6e567fb48167a (diff)
Add method to Bookmark class to retrieve note title and body
Diffstat (limited to 'readdialog.py')
-rw-r--r--readdialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/readdialog.py b/readdialog.py
index 24e7d33..c60d1a0 100644
--- a/readdialog.py
+++ b/readdialog.py
@@ -165,7 +165,7 @@ class BookmarkAddDialog(BookmarkDialog):
def accept_clicked_cb(self, widget):
title = self._title_entry.get_text()
details = self._content_entry.get_buffer().props.text
- content = {'title' : unicode(title), 'content' : unicode(details)}
+ content = {'title' : unicode(title), 'body' : unicode(details)}
self._sidebarinstance._real_add_bookmark(self._page, cjson.encode(content))
self.destroy()
@@ -176,7 +176,7 @@ class BookmarkEditDialog(BookmarkDialog):
def accept_clicked_cb(self, widget):
title = self._title_entry.get_text()
details = self._content_entry.get_buffer().props.text
- content = {'title' : unicode(title), 'content' : unicode(details)}
+ content = {'title' : unicode(title), 'body' : unicode(details)}
self._sidebarinstance.del_bookmark(self._page)
self._sidebarinstance._real_add_bookmark(self._page, cjson.encode(content))
self.destroy()