Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-07-13 08:25:31 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-13 08:25:31 (GMT)
commitd4f36128d2e5ff470ee6fa96c361d11e401d7346 (patch)
treea5b2cb1e6a4a2c4e56348931f04fd64ea3d65f23 /src
parentd08f6882e4f64759210663ba03eca182f5dea105 (diff)
mimetype -> mime_type
Diffstat (limited to 'src')
-rw-r--r--src/olpc/datastore/model.py2
-rw-r--r--src/olpc/datastore/xapianindex.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/olpc/datastore/model.py b/src/olpc/datastore/model.py
index ebdfcee..38c1e50 100644
--- a/src/olpc/datastore/model.py
+++ b/src/olpc/datastore/model.py
@@ -276,7 +276,7 @@ defaultModel = Model().addFields(
# Title has additional weight
('title', 'text', {'weight' : 2 }),
('url', 'string'),
- ('mimetype', 'string'),
+ ('mime_type', 'string'),
('author', 'string'),
('language', 'string'),
('ctime', 'date'),
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py
index ec7206d..c0f1665 100644
--- a/src/olpc/datastore/xapianindex.py
+++ b/src/olpc/datastore/xapianindex.py
@@ -239,7 +239,7 @@ class IndexManager(object):
# enque async file processing
# XXX: to make sure the file is kept around we could keep
# and open fp?
- mimetype = props.get("mimetype")
+ mimetype = props.get("mime_type")
mimetype = mimetype and mimetype.value or 'text/plain'
filestuff = (filename, mimetype)