X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplaylist.py;h=fc4ea9a7d72649ceb2354fcbece4750da829c7d4;hp=0be9e1e66dd972932c9bf83a1eca1e7d1230702b;hb=3f843575bc7652fb42c0a20fa7bd25c9d2221bb0;hpb=dd8889f4ce0e6ef2a5bd94528bb3d93f0942fa45 diff --git a/hooke/playlist.py b/hooke/playlist.py index 0be9e1e..fc4ea9a 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -1,3 +1,21 @@ +# Copyright (C) 2010 W. Trevor King +# +# This file is part of Hooke. +# +# Hooke is free software: you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, either +# version 3 of the License, or (at your option) any later version. +# +# Hooke is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with Hooke. If not, see +# . + """The `playlist` module provides a :class:`Playlist` and its subclass :class:`FilePlaylist` for manipulating lists of :class:`hooke.curve.Curve`\s. @@ -224,14 +242,15 @@ class FilePlaylist (Playlist): path/to/curve/two """ doc = xml.dom.minidom.parseString(string) - return self._from_xml_doc(doc) + self._from_xml_doc(doc) def load(self, path=None): """Load a playlist from a file. """ self.set_path(path) doc = xml.dom.minidom.parse(self.path) - return self._from_xml_doc(doc) + self._from_xml_doc(doc) + self._digest = self.digest() def save(self, path=None): """Saves the playlist in a XML file.