[mythtv-commits] Ticket #8982: python bindings scanStorageGroups(deleteold=True) fails

MythTV mythtv at cvs.mythtv.org
Tue Sep 21 22:47:07 UTC 2010


#8982: python bindings scanStorageGroups(deleteold=True) fails
-----------------------------------+----------------------------------------
     Reporter:  daniel@…           |       Owner:  wagnerrp
         Type:  defect             |      Status:  new     
     Priority:  minor              |   Milestone:  unknown 
    Component:  Bindings - Python  |     Version:  0.23.1  
     Severity:  low                |    Keywords:          
Ticket locked:  0                  |  
-----------------------------------+----------------------------------------
 In the python bindings using scanStorageGroups(deleteold=True) from
 MythVideo causes this error when there are old entries to remove.

 {{{
 >>> m = MythVideo(db=db1)
 >>> m.scanStorageGroups(deleteold=True)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 1035,
 in scanStorageGroups
     vid.delete()
   File "/usr/lib/python2.6/dist-packages/MythTV/MythData.py", line 1195,
 in delete
     self.cast.clean()
   File "/usr/lib/python2.6/dist-packages/MythTV/MythData.py", line 1116,
 in clean
     self.delete(member.cast)
   File "/usr/lib/python2.6/dist-packages/MythTV/MythData.py", line 1113,
 in delete
     def delete(self, member): DBDataCRef.delete(self,(member,))
   File "/usr/lib/python2.6/dist-packages/MythTV/MythBase.py", line 738, in
 delete
     index = self.hash.index[dat]
 TypeError: 'builtin_function_or_method' object is unsubscriptable

 }}}

 {{{
 MythTV Version   : 26407
 MythTV Branch    : branches/release-0-23-fixes
 Network Protocol : 23056
 Library API      : 0.23.1.201000710-1
 QT Version       : 4.5.2
 Options compiled in:
  linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput
 using_backend using_dvb using_firewire using_frontend
 using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv
 using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video
 using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11
 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw
 using_bindings_perl using_bindings_python using_opengl using_vdpau
 using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8982>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list