[Xapian-tickets] [Xapian] #531: Python bindings attempt to use deprecated methods

Xapian nobody at xapian.org
Wed Jan 26 22:41:19 GMT 2011


#531: Python bindings attempt to use deprecated methods
--------------------------------------+-------------------------------------
 Reporter:  rq                        |       Owner:  richard
     Type:  defect                    |      Status:  new    
 Priority:  normal                    |   Milestone:         
Component:  Xapian-bindings (Python)  |     Version:         
 Severity:  normal                    |    Keywords:         
Blockedby:                            |    Platform:  All    
 Blocking:                            |  
--------------------------------------+-------------------------------------
 According to http://xapian.org/docs/deprecation.htm, MSetItem.get_*()
 methods have been deprecated since 1.1. However, it seems like python-
 xapian itself attempts to make those calls when creating
 MSetItem[xapian.MSET_*] tuples, which causes an application attempting to
 use those tuples to err. See
 http://bugs.locamotion.org/show_bug.cgi?id=1766 for example. In this case,
 the Translate Toolkit did not use MSetItem.get_*() methods, but it still
 quit with an error when  trying to use MSetItem[xapian.MSET_*]. Changing
 the appropriate lines to use MSetItem.* properties fixed the problem.

 I suspect the real problem is in http://trac.xapian.org/browser/trunk
 /xapian-bindings/python/util.i#L195 and below, where
 MSetItem[xapian.MSET_*] tuples are being created. I'm no Python expert
 though, so I may be totally wrong here.

-- 
Ticket URL: <http://trac.xapian.org/ticket/531>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list