[snowy] open-on-startup is a JSON bool, not a string.
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [snowy] open-on-startup is a JSON bool, not a string.
- Date: Mon, 18 May 2009 19:35:29 -0400 (EDT)
commit b7873ce79f95da307430a1a528d6469b727ee18a
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Mon May 18 16:21:29 2009 -0700
open-on-startup is a JSON bool, not a string.
---
api/handlers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/api/handlers.py b/api/handlers.py
index c6137dc..7babd3a 100644
--- a/api/handlers.py
+++ b/api/handlers.py
@@ -134,7 +134,7 @@ class NotesHandler(BaseHandler):
else:
note.modified = datetime.now()
if c.has_key('create-date'): note.created = clean_date(c['create-date'])
- if c.has_key('open-on-startup'): note.open_on_startup = (c['open-on-startup'] == 'true')
+ if c.has_key('open-on-startup'): note.open_on_startup = (c['open-on-startup'] == True)
if c.has_key('tags'):
for tagName in c['tags']:
is_notebook = tagName.startswith('system:notebook:')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]