From: W. Trevor King Date: Tue, 10 Aug 2010 20:15:50 +0000 (-0400) Subject: Fix tree method exposure in playlist GUI pansl X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7918988bee68b0918e1fc21bad75418779bbb817;p=hooke.git Fix tree method exposure in playlist GUI pansl --- diff --git a/hooke/ui/gui/panel/playlist.py b/hooke/ui/gui/panel/playlist.py index c50da0b..fd46d2d 100644 --- a/hooke/ui/gui/panel/playlist.py +++ b/hooke/ui/gui/panel/playlist.py @@ -359,8 +359,8 @@ class Playlist (Panel, wx.Panel): # Following DRY and the LoD. for attribute_name in dir(self._c['tree']): if (attribute_name.startswith('_') - or 'playlist' not in attribute_name - or 'curve' not in attribute_name): + or ('playlist' not in attribute_name + and 'curve' not in attribute_name)): continue # not an attribute we're interested in attr = getattr(self._c['tree'], attribute_name) if hasattr(attr, '__call__'): # attr is a function / method