Move NoteFilterCommand from plugin.playlist to plugin.note.
[hooke.git] / hooke / plugin / playlist.py
index afd2ef9dc56558a7e213c6c171fb7ad8936b0ad8..2b9caa8e29149c91b474282e7946c315d9cf6b79 100644 (file)
@@ -40,7 +40,7 @@ class PlaylistPlugin (Builtin):
             SaveCommand(self), LoadCommand(self),
             AddCommand(self), AddGlobCommand(self),
             RemoveCommand(self), ApplyCommandStack(self),
-            FilterCommand(self), NoteFilterCommand(self),
+            FilterCommand(self),
             ]
 
 
@@ -406,14 +406,3 @@ Function returning `True` for "good" curves.
             p.set_path(os.path.join(os.path.dirname(p.path), p.name))
         self._set_playlist(hooke, params, p)
         outqueue.put(p)
-
-
-class NoteFilterCommand (FilterCommand):
-    """Create a subset playlist of curves with `.info['note'] != None`.
-    """
-    def __init__(self, plugin):
-        super(NoteFilterCommand, self).__init__(
-            plugin, name='note filter playlist')
-
-    def filter(self, curve, hooke, inqueue, outqueue, params):
-        return 'note' in curve.info and curve.info['note'] != None