From c2b0d48d78c488847f42ec3f1883a7d97dfa15db Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 10 Sep 2007 12:03:45 +0000 Subject: Add timestamp field to model. --- diff --git a/src/olpc/datastore/model.py b/src/olpc/datastore/model.py index 14bb4b9..7c8afdc 100644 --- a/src/olpc/datastore/model.py +++ b/src/olpc/datastore/model.py @@ -360,6 +360,8 @@ defaultModel = Model().addFields( ('language', 'string'), ('ctime', 'date'), ('mtime', 'date'), + # Better store the timestamp instead of date strings + ('timestamp', 'int'), # 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. @@ -375,4 +377,3 @@ defaultModel = Model().addFields( ('buddies', 'text'), ) - -- cgit v0.9.1