Hi all,

here is a patch for those that need a working journal and datastore in
the current jhbuild until a more definitive fix is pushed into git
(hopefully later today).

You'll have to remove the .sugar/default/datastore dir before running
sugar, and perhaps you'll have to remove it again after the definitive
fix is applied.

The patch applies to the datastore module.

Thanks,

Tomeu
diff --git a/src/olpc/datastore/model.py b/src/olpc/datastore/model.py
index 011c3f4..33e0837 100644
--- a/src/olpc/datastore/model.py
+++ b/src/olpc/datastore/model.py
@@ -319,8 +319,8 @@ defaultModel = Model().addFields(
     ('mime_type', 'string'),
     ('author', 'string'),
     ('language', 'string'),
-    ('ctime', 'date'),
-    ('mtime', 'date'),
+    ('ctime', 'string'),
+    ('mtime', 'string'),
     # this will just be a space delimited list of tags
     # indexed with the content
     # I give them high weight as they have user given semantic value.
@@ -329,7 +329,7 @@ defaultModel = Model().addFields(
     # olpc specific
     ('activity', 'string'),
     ('title_set_by_user', 'text'),
-    ('keep', 'int'),
+    ('keep', 'string'),
     ('icon-color', 'string'),
     ('preview', 'binary'),
     ('buddies', 'text'),
_______________________________________________
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar

Reply via email to