Fix tree method exposure in playlist GUI pansl
authorW. Trevor King <wking@drexel.edu>
Tue, 10 Aug 2010 20:15:50 +0000 (16:15 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 10 Aug 2010 20:15:50 +0000 (16:15 -0400)
hooke/ui/gui/panel/playlist.py

index c50da0bd1449763fdffb075464285b6ccfdb9e81..fd46d2dc526ad56043e9155a5d01de35de73be5c 100644 (file)
@@ -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