Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-09-10 12:03:45 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-09-10 12:03:45 (GMT)
commitc2b0d48d78c488847f42ec3f1883a7d97dfa15db (patch)
treefec25d5ab38a06894fbc94370f197eb4231bb954
parent8b966549ae02776122efb4d04efbe0e3b2963648 (diff)
Add timestamp field to model.
-rw-r--r--src/olpc/datastore/model.py3
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'),
)
-