diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-10 12:03:45 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-09-10 12:03:45 (GMT) |
commit | c2b0d48d78c488847f42ec3f1883a7d97dfa15db (patch) | |
tree | fec25d5ab38a06894fbc94370f197eb4231bb954 | |
parent | 8b966549ae02776122efb4d04efbe0e3b2963648 (diff) |
Add timestamp field to model.
-rw-r--r-- | src/olpc/datastore/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
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'), ) - |