- def _on_user_delete_playlist(self, _class, method, playlist):
- pass
-
- def _on_delete_playlist(self, _class, method, playlist):
- if hasattr(playlist, 'path') and playlist.path != None:
- os.remove(playlist.path)
-
- def _on_user_delete_curve(self, _class, method, playlist, curve):
- pass
-
- def _on_delete_curve(self, _class, method, playlist, curve):
- index = playlist.index(curve)
- results = self.execute_command(
- command=self._command_by_name('remove curve from playlist'),
- args={'index': index})
- #os.remove(curve.path)
+ def _delete_playlist(self, _class, method, playlist):
+ #if hasattr(playlist, 'path') and playlist.path != None:
+ # os.remove(playlist.path)
+ # TODO: remove playlist from underlying hooke instance and call ._c['playlist'].delete_playlist()
+ # possibly rename this method to _postprocess_delete_playlist...