changeset 5037:712677d7023c

add note about .data being a pickle
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 25 Aug 2009 13:39:36 +0200
parents 4b2ef153ad4f
children 6035cb0345db 3e9398438b56
files MoinMoin/search/builtin.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Sun Aug 23 13:37:27 2009 +0200
+++ b/MoinMoin/search/builtin.py	Tue Aug 25 13:39:36 2009 +0200
@@ -649,8 +649,8 @@
         except BaseIndex.LockedException:
             pass
 
-        # XXX must search_results be decoded?
-
+        # Note: .data is (un)pickled inside xappy, so we get back exactly what
+        #       we had put into it at indexing time (including unicode objects).
         pages = [{'uid': r.id,
                   'wikiname': r.data['wikiname'][0],
                   'pagename': r.data['pagename'][0],