+ def _postprocess_get_playlist(self, command, results):\r
+ if not isinstance(results[-1], Success):\r
+ self._postprocess_text(command, results)\r
+ assert len(results) == 2, results\r
+ playlist = results[0]\r
+ print playlist\r
+ self._c['playlists']._c['tree'].update_playlist(playlist)\r
+\r
+ def _postprocess_get_curve(self, command, results):\r
+ """Update `self` to show the curve.\r
+ """\r
+ if not isinstance(results[-1], Success):\r
+ self._postprocess_text(command, results)\r
+ assert len(results) == 2, results\r
+ curve = results[0]\r
+ playlist = self._c['playlists']._c['tree'].get_selected_playlist()\r
+ if playlist != None: # TODO: fix once we have hooke.plugin.playlists\r
+ self._c['playlists']._c['tree'].set_selected_curve(\r
+ playlist, curve)\r
+\r
+ def _postprocess_next_curve(self, command, results):\r
+ """No-op. Only call 'next curve' via `self._next_curve()`.\r
+ """\r
+ pass\r
+\r
+ def _postprocess_previous_curve(self, command, results):\r
+ """No-op. Only call 'previous curve' via `self._previous_curve()`.\r
+ """\r
+ pass\r
+\r