~mmcg069/software-center/appview-buy-button

« back to all changes in this revision

Viewing changes to test/channel_query.py

  • Committer: Michael Vogt
  • Date: 2010-09-10 07:17:42 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100910071742-vhvqnwwcky5iyduy
use "match.document" instead of "match[xapian.MSET_DOCUMENT]"
to be compatible with xapian 1.2.x (closes: 596079)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    print "Matches: %s" % len(matches)
25
25
    apps = set()
26
26
    for m in matches:
27
 
        doc = m[xapian.MSET_DOCUMENT]
 
27
        doc = m.document
28
28
        appname = doc.get_data()
29
29
        apps.add(appname)
30
30
        #for t in doc.termlist():