Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gdatastore/index.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdatastore/index.py b/gdatastore/index.py
index 5730f54..faa02c5 100644
--- a/gdatastore/index.py
+++ b/gdatastore/index.py
@@ -144,6 +144,9 @@ class QueryParser(xapian.QueryParser):
for name, info in _STANDARD_TERMS.items():
self.add_prefix(name, info['prefix'])
self.add_prefix('', info['prefix'])
+ # For compatibility with Sugar 0.84+ data store API (without
+ # version support).
+ self.add_prefix('uid', _STANDARD_TERMS['tree_id']['prefix'])
def _parse_query_term(self, prefix, value):
if isinstance(value, list):