From d2381c78af7f3c507686886035fc12531b77e393 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 25 Mar 2008 21:28:42 +0000 Subject: [PATCH] Switch license to GPLv3 --- osx_installer.py | 16 ++-------- resources.py | 16 ++-------- setup.py | 30 +++++++------------ src/libprs500/__init__.py | 20 +++---------- src/libprs500/debug.py | 16 ++-------- src/libprs500/devices/__init__.py | 16 ++-------- src/libprs500/devices/errors.py | 16 ++-------- src/libprs500/devices/interface.py | 16 ++-------- src/libprs500/devices/kindle/__init__.py | 16 ++-------- src/libprs500/devices/kindle/books.py | 16 ++-------- src/libprs500/devices/kindle/driver.py | 16 ++-------- src/libprs500/devices/libusb.py | 16 ++-------- src/libprs500/devices/manager.py | 16 ++-------- src/libprs500/devices/prs500/__init__.py | 16 ++-------- src/libprs500/devices/prs500/books.py | 16 ++-------- src/libprs500/devices/prs500/cli/__init__.py | 16 ++-------- src/libprs500/devices/prs500/cli/main.py | 16 ++-------- src/libprs500/devices/prs500/driver.py | 16 ++-------- src/libprs500/devices/prs500/prstypes.py | 16 ++-------- src/libprs500/devices/prs505/__init__.py | 16 ++-------- src/libprs500/devices/prs505/books.py | 16 ++-------- src/libprs500/devices/prs505/driver.py | 16 ++-------- src/libprs500/devices/scanner.py | 16 ++-------- src/libprs500/ebooks/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/any/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/any/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/epub/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/epub/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/feeds/__init__.py | 16 ++-------- .../ebooks/lrf/feeds/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/fonts/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/html/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/html/color_map.py | 16 ++-------- src/libprs500/ebooks/lrf/html/convert_from.py | 18 ++--------- src/libprs500/ebooks/lrf/html/convert_to.py | 16 ++-------- src/libprs500/ebooks/lrf/html/table.py | 16 ++-------- src/libprs500/ebooks/lrf/lit/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/lit/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/lrs/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/lrs/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/meta.py | 16 ++-------- src/libprs500/ebooks/lrf/mobi/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/objects.py | 16 ++-------- src/libprs500/ebooks/lrf/parser.py | 16 ++-------- src/libprs500/ebooks/lrf/pdf/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/pdf/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/pdf/reflow.py | 16 ++-------- src/libprs500/ebooks/lrf/rtf/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/rtf/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/tags.py | 16 ++-------- src/libprs500/ebooks/lrf/txt/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/txt/convert_from.py | 16 ++-------- src/libprs500/ebooks/lrf/web/__init__.py | 16 ++-------- src/libprs500/ebooks/lrf/web/convert_from.py | 16 ++-------- .../ebooks/lrf/web/profiles/__init__.py | 16 ++-------- .../ebooks/lrf/web/profiles/atlantic.py | 16 ++-------- .../ebooks/lrf/web/profiles/automatic.py | 16 ++-------- src/libprs500/ebooks/lrf/web/profiles/bbc.py | 16 ++-------- src/libprs500/ebooks/lrf/web/profiles/cnn.py | 16 ++-------- .../ebooks/lrf/web/profiles/dilbert.py | 18 ++--------- .../ebooks/lrf/web/profiles/economist.py | 16 ++-------- .../ebooks/lrf/web/profiles/faznet.py | 19 ++---------- .../ebooks/lrf/web/profiles/newsweek.py | 16 ++-------- .../ebooks/lrf/web/profiles/nytimes.py | 16 ++-------- .../ebooks/lrf/web/profiles/spiegelde.py | 18 ++--------- .../ebooks/lrf/web/profiles/zeitde.py | 18 ++--------- src/libprs500/ebooks/metadata/__init__.py | 16 ++-------- src/libprs500/ebooks/metadata/epub.py | 16 ++-------- src/libprs500/ebooks/metadata/html.py | 16 ++-------- src/libprs500/ebooks/metadata/isbndb.py | 16 ++-------- .../ebooks/metadata/library_thing.py | 16 ++-------- src/libprs500/ebooks/metadata/lit.py | 16 ++-------- src/libprs500/ebooks/metadata/meta.py | 16 ++-------- src/libprs500/ebooks/metadata/opf.py | 16 ++-------- src/libprs500/ebooks/metadata/pdf.py | 16 ++-------- src/libprs500/ebooks/metadata/rtf.py | 16 ++-------- src/libprs500/ebooks/metadata/toc.py | 16 ++-------- src/libprs500/ebooks/mobi/__init__.py | 16 ++-------- src/libprs500/ebooks/mobi/huffcdic.py | 16 ++-------- src/libprs500/ebooks/mobi/palmdoc.py | 16 ++-------- src/libprs500/ebooks/mobi/reader.py | 16 ++-------- src/libprs500/gui2/__init__.py | 16 ++-------- src/libprs500/gui2/device.py | 16 ++-------- src/libprs500/gui2/dialogs/__init__.py | 16 ++-------- src/libprs500/gui2/dialogs/choose_format.py | 16 ++-------- src/libprs500/gui2/dialogs/config.py | 16 ++-------- .../gui2/dialogs/conversion_error.py | 16 ++-------- src/libprs500/gui2/dialogs/fetch_metadata.py | 16 ++-------- src/libprs500/gui2/dialogs/jobs.py | 16 ++-------- src/libprs500/gui2/dialogs/lrf_single.py | 16 ++-------- src/libprs500/gui2/dialogs/metadata_bulk.py | 16 ++-------- src/libprs500/gui2/dialogs/metadata_single.py | 16 ++-------- src/libprs500/gui2/dialogs/password.py | 16 ++-------- src/libprs500/gui2/dialogs/search.py | 16 ++-------- src/libprs500/gui2/dialogs/tag_editor.py | 16 ++-------- src/libprs500/gui2/dialogs/user_profiles.py | 16 ++-------- src/libprs500/gui2/jobs.py | 16 ++-------- src/libprs500/gui2/library.py | 16 ++-------- src/libprs500/gui2/lrf_renderer/__init__.py | 16 ++-------- src/libprs500/gui2/lrf_renderer/bookview.py | 16 ++-------- src/libprs500/gui2/lrf_renderer/document.py | 16 ++-------- src/libprs500/gui2/lrf_renderer/main.py | 16 ++-------- src/libprs500/gui2/lrf_renderer/text.py | 16 ++-------- src/libprs500/gui2/main.py | 16 ++-------- src/libprs500/gui2/main_window.py | 16 ++-------- src/libprs500/gui2/make.py | 16 ++-------- src/libprs500/gui2/news.py | 16 ++-------- src/libprs500/gui2/status.py | 16 ++-------- src/libprs500/gui2/update.py | 16 ++-------- src/libprs500/gui2/widgets.py | 16 ++-------- src/libprs500/library/__init__.py | 16 ++-------- src/libprs500/library/database.py | 16 ++-------- src/libprs500/libunrar.py | 16 ++-------- src/libprs500/libunzip.py | 16 ++-------- src/libprs500/libwand.py | 16 ++-------- src/libprs500/linux.py | 16 ++-------- src/libprs500/manual/custom.py | 16 ++-------- src/libprs500/parallel.py | 18 ++--------- src/libprs500/ptempfile.py | 16 ++-------- src/libprs500/terminfo.py | 16 ++-------- src/libprs500/trac/__init__.py | 16 ++-------- src/libprs500/trac/plugins/__init__.py | 16 ++-------- src/libprs500/trac/plugins/download.py | 16 ++-------- src/libprs500/trac/setup.py | 16 ++-------- src/libprs500/translations/__init__.py | 16 ++-------- src/libprs500/web/__init__.py | 16 ++-------- src/libprs500/web/feeds/__init__.py | 16 ++-------- src/libprs500/web/feeds/main.py | 16 ++-------- src/libprs500/web/feeds/news.py | 16 ++-------- src/libprs500/web/feeds/recipes/__init__.py | 16 ++-------- src/libprs500/web/feeds/recipes/atlantic.py | 16 ++-------- src/libprs500/web/feeds/recipes/bbc.py | 16 ++-------- src/libprs500/web/feeds/recipes/dilbert.py | 16 ++-------- src/libprs500/web/feeds/recipes/economist.py | 16 ++-------- src/libprs500/web/feeds/recipes/newsweek.py | 16 ++-------- src/libprs500/web/feeds/recipes/nytimes.py | 16 ++-------- .../web/feeds/recipes/outlook_india.py | 16 ++-------- src/libprs500/web/feeds/recipes/portfolio.py | 16 ++-------- src/libprs500/web/feeds/recipes/usatoday.py | 16 ++-------- src/libprs500/web/feeds/templates.py | 16 ++-------- src/libprs500/web/fetch/__init__.py | 16 ++-------- src/libprs500/web/fetch/simple.py | 16 ++-------- windows_installer.py | 16 ++-------- 144 files changed, 299 insertions(+), 2036 deletions(-) diff --git a/osx_installer.py b/osx_installer.py index 6fcc86fcec..af89b85ebb 100644 --- a/osx_installer.py +++ b/osx_installer.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Create an OSX installer ''' import sys, re, os, shutil, subprocess, stat diff --git a/resources.py b/resources.py index cf5cf58253..00900410ae 100644 --- a/resources.py +++ b/resources.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Compile resource files. ''' diff --git a/setup.py b/setup.py index 36841ee2f9..3f0414c35f 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,7 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +#!/usr/bin/env python +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' + import sys, re, os, shutil sys.path.append('src') islinux = not ('win32' in sys.platform or 'win64' in sys.platform or 'darwin' in sys.platform) @@ -79,19 +69,19 @@ if __name__ == '__main__': """, long_description = """ - libprs500 is an e-book library manager. It can view, convert and catalog e-books + %s is an e-book library manager. It can view, convert and catalog e-books in most of the major e-book formats. It can also talk to a few e-book reader devices. It can go out to the internet and fetch metadata for your books. It can download newspapers and convert them into e-books for convenient reading. It is cross platform, running on Linux, Windows and OS X. - For screenshots: https://libprs500.kovidgoyal.net/wiki/Screenshots + For screenshots: https://%s.kovidgoyal.net/wiki/Screenshots For installation/usage instructions please see - http://libprs500.kovidgoyal.net + http://%s.kovidgoyal.net - For SVN access: svn co https://svn.kovidgoyal.net/code/libprs500 + For SVN access: svn co https://svn.kovidgoyal.net/code/%s - """, + """%__appname__, license = 'GPL', classifiers = [ 'Development Status :: 4 - Beta', @@ -99,7 +89,7 @@ if __name__ == '__main__': 'Environment :: X11 Applications :: Qt', 'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU General Public License (GPL)', + 'License :: OSI Approved :: GNU General Public License (GPL) v3', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index 4f6157981d..2e1e9e3912 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -1,21 +1,9 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' E-book management software''' __version__ = "0.4.43" __docformat__ = "epytext" -__author__ = "Kovid Goyal " +__author__ = "Kovid Goyal " __appname__ = 'libprs500' import sys, os, logging, mechanize, locale, copy, cStringIO, re, subprocess, \ @@ -483,4 +471,4 @@ _settings = Settings() if not _settings.get('migrated from QSettings'): _settings.migrate(QSettings('KovidsBrain', 'libprs500')) _settings.set('migrated from QSettings', True) - _settings.sync() \ No newline at end of file + _settings.sync() diff --git a/src/libprs500/debug.py b/src/libprs500/debug.py index 69a3d4159a..ea756b2611 100644 --- a/src/libprs500/debug.py +++ b/src/libprs500/debug.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Embedded console for debugging. ''' diff --git a/src/libprs500/devices/__init__.py b/src/libprs500/devices/__init__.py index 665ab3b1b8..5227e9e5d3 100644 --- a/src/libprs500/devices/__init__.py +++ b/src/libprs500/devices/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Device drivers. ''' diff --git a/src/libprs500/devices/errors.py b/src/libprs500/devices/errors.py index c22d95db23..6ac76176f3 100644 --- a/src/libprs500/devices/errors.py +++ b/src/libprs500/devices/errors.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Defines the errors that the device drivers generate. diff --git a/src/libprs500/devices/interface.py b/src/libprs500/devices/interface.py index 038fa618a0..58a9eafa48 100644 --- a/src/libprs500/devices/interface.py +++ b/src/libprs500/devices/interface.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Define the minimum interface that a device backend must satisfy to be used in the GUI. A device backend must subclass the L{Device} class. See prs500.py for diff --git a/src/libprs500/devices/kindle/__init__.py b/src/libprs500/devices/kindle/__init__.py index c13ce46b4e..c705e32a66 100755 --- a/src/libprs500/devices/kindle/__init__.py +++ b/src/libprs500/devices/kindle/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. \ No newline at end of file +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' \ No newline at end of file diff --git a/src/libprs500/devices/kindle/books.py b/src/libprs500/devices/kindle/books.py index 3938bb0c8a..b8d9ec1d04 100755 --- a/src/libprs500/devices/kindle/books.py +++ b/src/libprs500/devices/kindle/books.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' ''' import re, time, functools diff --git a/src/libprs500/devices/kindle/driver.py b/src/libprs500/devices/kindle/driver.py index 0b05c80bd8..7049a37dcb 100755 --- a/src/libprs500/devices/kindle/driver.py +++ b/src/libprs500/devices/kindle/driver.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Device driver for the Amazon Kindle ''' diff --git a/src/libprs500/devices/libusb.py b/src/libprs500/devices/libusb.py index 5291a23c25..19639d5df3 100644 --- a/src/libprs500/devices/libusb.py +++ b/src/libprs500/devices/libusb.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This module provides a thin ctypes based wrapper around libusb. """ diff --git a/src/libprs500/devices/manager.py b/src/libprs500/devices/manager.py index 285e18fa07..1896bb5d78 100644 --- a/src/libprs500/devices/manager.py +++ b/src/libprs500/devices/manager.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' diff --git a/src/libprs500/devices/prs500/__init__.py b/src/libprs500/devices/prs500/__init__.py index ecd67d3411..d9f4403944 100644 --- a/src/libprs500/devices/prs500/__init__.py +++ b/src/libprs500/devices/prs500/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Device driver for the Sony Reader PRS 500 diff --git a/src/libprs500/devices/prs500/books.py b/src/libprs500/devices/prs500/books.py index f814c22752..995bcd16eb 100644 --- a/src/libprs500/devices/prs500/books.py +++ b/src/libprs500/devices/prs500/books.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This module contains the logic for dealing with XML book lists found in the reader cache. diff --git a/src/libprs500/devices/prs500/cli/__init__.py b/src/libprs500/devices/prs500/cli/__init__.py index b20d1ac2d5..6b376c2ad3 100644 --- a/src/libprs500/devices/prs500/cli/__init__.py +++ b/src/libprs500/devices/prs500/cli/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Provides a command-line interface to the SONY Reader PRS-500. diff --git a/src/libprs500/devices/prs500/cli/main.py b/src/libprs500/devices/prs500/cli/main.py index 638572dde2..a23fdffc9c 100755 --- a/src/libprs500/devices/prs500/cli/main.py +++ b/src/libprs500/devices/prs500/cli/main.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Provides a command-line and optional graphical interface to the SONY Reader PRS-500. diff --git a/src/libprs500/devices/prs500/driver.py b/src/libprs500/devices/prs500/driver.py index bf5b59f022..42285295ae 100755 --- a/src/libprs500/devices/prs500/driver.py +++ b/src/libprs500/devices/prs500/driver.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ### End point description for PRS-500 procductId=667 ### Endpoint Descriptor: diff --git a/src/libprs500/devices/prs500/prstypes.py b/src/libprs500/devices/prs500/prstypes.py index 2af9df7e34..376f83ccfa 100755 --- a/src/libprs500/devices/prs500/prstypes.py +++ b/src/libprs500/devices/prs500/prstypes.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Defines the structure of packets that are sent to/received from the device. diff --git a/src/libprs500/devices/prs505/__init__.py b/src/libprs500/devices/prs505/__init__.py index aaf49de99e..f832dbb7fc 100644 --- a/src/libprs500/devices/prs505/__init__.py +++ b/src/libprs500/devices/prs505/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/devices/prs505/books.py b/src/libprs500/devices/prs505/books.py index 9ac3cce790..190e13e3b4 100644 --- a/src/libprs500/devices/prs505/books.py +++ b/src/libprs500/devices/prs505/books.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' ''' import re, time, functools diff --git a/src/libprs500/devices/prs505/driver.py b/src/libprs500/devices/prs505/driver.py index 0828c73a89..1375915ec0 100644 --- a/src/libprs500/devices/prs505/driver.py +++ b/src/libprs500/devices/prs505/driver.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Device driver for the SONY PRS-505 ''' diff --git a/src/libprs500/devices/scanner.py b/src/libprs500/devices/scanner.py index d8ad3b6678..5540b6a3ae 100644 --- a/src/libprs500/devices/scanner.py +++ b/src/libprs500/devices/scanner.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Device scanner that fetches list of devices on system ina platform dependent manner. diff --git a/src/libprs500/ebooks/__init__.py b/src/libprs500/ebooks/__init__.py index 25a6c4c315..5b5f5ce0e6 100644 --- a/src/libprs500/ebooks/__init__.py +++ b/src/libprs500/ebooks/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Code for the conversion of ebook formats and the reading of metadata diff --git a/src/libprs500/ebooks/lrf/__init__.py b/src/libprs500/ebooks/lrf/__init__.py index 285a23a042..755f66bbb7 100644 --- a/src/libprs500/ebooks/lrf/__init__.py +++ b/src/libprs500/ebooks/lrf/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This package contains logic to read and write LRF files. The LRF file format is documented at U{http://www.sven.de/librie/Librie/LrfFormat}. diff --git a/src/libprs500/ebooks/lrf/any/__init__.py b/src/libprs500/ebooks/lrf/any/__init__.py index aaf49de99e..f832dbb7fc 100644 --- a/src/libprs500/ebooks/lrf/any/__init__.py +++ b/src/libprs500/ebooks/lrf/any/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/ebooks/lrf/any/convert_from.py b/src/libprs500/ebooks/lrf/any/convert_from.py index 448bbed21c..170c191131 100644 --- a/src/libprs500/ebooks/lrf/any/convert_from.py +++ b/src/libprs500/ebooks/lrf/any/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Convert any ebook file into a LRF file.''' import sys, os, logging, shutil, tempfile, glob diff --git a/src/libprs500/ebooks/lrf/epub/__init__.py b/src/libprs500/ebooks/lrf/epub/__init__.py index 97ad144cc4..ab32bc9c41 100644 --- a/src/libprs500/ebooks/lrf/epub/__init__.py +++ b/src/libprs500/ebooks/lrf/epub/__init__.py @@ -1,15 +1,3 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/ebooks/lrf/epub/convert_from.py b/src/libprs500/ebooks/lrf/epub/convert_from.py index 708e0d2a40..08c0813376 100644 --- a/src/libprs500/ebooks/lrf/epub/convert_from.py +++ b/src/libprs500/ebooks/lrf/epub/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, sys, shutil, glob, logging from tempfile import mkdtemp diff --git a/src/libprs500/ebooks/lrf/feeds/__init__.py b/src/libprs500/ebooks/lrf/feeds/__init__.py index 86475d028f..ec763fbda7 100644 --- a/src/libprs500/ebooks/lrf/feeds/__init__.py +++ b/src/libprs500/ebooks/lrf/feeds/__init__.py @@ -1,16 +1,4 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/ebooks/lrf/feeds/convert_from.py b/src/libprs500/ebooks/lrf/feeds/convert_from.py index b55e20d3bc..4c28243463 100644 --- a/src/libprs500/ebooks/lrf/feeds/convert_from.py +++ b/src/libprs500/ebooks/lrf/feeds/convert_from.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Convert web feeds to LRF files. ''' diff --git a/src/libprs500/ebooks/lrf/fonts/__init__.py b/src/libprs500/ebooks/lrf/fonts/__init__.py index 3b451b43a3..22da335b79 100644 --- a/src/libprs500/ebooks/lrf/fonts/__init__.py +++ b/src/libprs500/ebooks/lrf/fonts/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import sys, os from libprs500 import iswindows from libprs500.ptempfile import PersistentTemporaryFile diff --git a/src/libprs500/ebooks/lrf/html/__init__.py b/src/libprs500/ebooks/lrf/html/__init__.py index d689049df4..23fc0ed6b0 100644 --- a/src/libprs500/ebooks/lrf/html/__init__.py +++ b/src/libprs500/ebooks/lrf/html/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This package contains code to convert HTML ebooks to LRF ebooks. """ diff --git a/src/libprs500/ebooks/lrf/html/color_map.py b/src/libprs500/ebooks/lrf/html/color_map.py index 0dc123dd9a..78377de657 100644 --- a/src/libprs500/ebooks/lrf/html/color_map.py +++ b/src/libprs500/ebooks/lrf/html/color_map.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import re diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py index 3858cbc4bd..85abbe77de 100644 --- a/src/libprs500/ebooks/lrf/html/convert_from.py +++ b/src/libprs500/ebooks/lrf/html/convert_from.py @@ -1,19 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This work is based on htmlbbeb created by esperanc. -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Code to convert HTML ebooks into LRF ebooks. diff --git a/src/libprs500/ebooks/lrf/html/convert_to.py b/src/libprs500/ebooks/lrf/html/convert_to.py index 677ab73ac8..6ce6d67f43 100644 --- a/src/libprs500/ebooks/lrf/html/convert_to.py +++ b/src/libprs500/ebooks/lrf/html/convert_to.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import sys, logging, os from libprs500 import setup_cli_handlers, OptionParser diff --git a/src/libprs500/ebooks/lrf/html/table.py b/src/libprs500/ebooks/lrf/html/table.py index 7473146cde..083dafdf32 100644 --- a/src/libprs500/ebooks/lrf/html/table.py +++ b/src/libprs500/ebooks/lrf/html/table.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import math, sys, re from libprs500.ebooks.lrf.fonts import get_font diff --git a/src/libprs500/ebooks/lrf/lit/__init__.py b/src/libprs500/ebooks/lrf/lit/__init__.py index 97ad144cc4..ab32bc9c41 100644 --- a/src/libprs500/ebooks/lrf/lit/__init__.py +++ b/src/libprs500/ebooks/lrf/lit/__init__.py @@ -1,15 +1,3 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/ebooks/lrf/lit/convert_from.py b/src/libprs500/ebooks/lrf/lit/convert_from.py index 0329384204..5aed2682c3 100644 --- a/src/libprs500/ebooks/lrf/lit/convert_from.py +++ b/src/libprs500/ebooks/lrf/lit/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, sys, shutil, glob, logging from tempfile import mkdtemp diff --git a/src/libprs500/ebooks/lrf/lrs/__init__.py b/src/libprs500/ebooks/lrf/lrs/__init__.py index 424f5beeb7..0983eee411 100644 --- a/src/libprs500/ebooks/lrf/lrs/__init__.py +++ b/src/libprs500/ebooks/lrf/lrs/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' diff --git a/src/libprs500/ebooks/lrf/lrs/convert_from.py b/src/libprs500/ebooks/lrf/lrs/convert_from.py index d16241cb0b..a49ab4b93f 100644 --- a/src/libprs500/ebooks/lrf/lrs/convert_from.py +++ b/src/libprs500/ebooks/lrf/lrs/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Compile a LRS file into a LRF file. ''' diff --git a/src/libprs500/ebooks/lrf/meta.py b/src/libprs500/ebooks/lrf/meta.py index 2c2eeee044..3ddc968330 100644 --- a/src/libprs500/ebooks/lrf/meta.py +++ b/src/libprs500/ebooks/lrf/meta.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This module presents an easy to use interface for getting and setting diff --git a/src/libprs500/ebooks/lrf/mobi/convert_from.py b/src/libprs500/ebooks/lrf/mobi/convert_from.py index f8e4468a94..9e62f87d08 100644 --- a/src/libprs500/ebooks/lrf/mobi/convert_from.py +++ b/src/libprs500/ebooks/lrf/mobi/convert_from.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' import sys, tempfile, os, logging, shutil diff --git a/src/libprs500/ebooks/lrf/objects.py b/src/libprs500/ebooks/lrf/objects.py index 66577935d5..dd1bcc5815 100644 --- a/src/libprs500/ebooks/lrf/objects.py +++ b/src/libprs500/ebooks/lrf/objects.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import struct, array, zlib, cStringIO, collections, re from libprs500.ebooks.lrf import LRFParseError, PRS500_PROFILE, entity_to_unicode diff --git a/src/libprs500/ebooks/lrf/parser.py b/src/libprs500/ebooks/lrf/parser.py index 960965bac9..2713b04f14 100644 --- a/src/libprs500/ebooks/lrf/parser.py +++ b/src/libprs500/ebooks/lrf/parser.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' import sys, array, os, re, codecs, logging diff --git a/src/libprs500/ebooks/lrf/pdf/__init__.py b/src/libprs500/ebooks/lrf/pdf/__init__.py index aaf49de99e..f832dbb7fc 100644 --- a/src/libprs500/ebooks/lrf/pdf/__init__.py +++ b/src/libprs500/ebooks/lrf/pdf/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/ebooks/lrf/pdf/convert_from.py b/src/libprs500/ebooks/lrf/pdf/convert_from.py index b394b3ca67..d590c142c4 100644 --- a/src/libprs500/ebooks/lrf/pdf/convert_from.py +++ b/src/libprs500/ebooks/lrf/pdf/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' import sys, os, subprocess, logging diff --git a/src/libprs500/ebooks/lrf/pdf/reflow.py b/src/libprs500/ebooks/lrf/pdf/reflow.py index d5535af029..5907dbfcf5 100644 --- a/src/libprs500/ebooks/lrf/pdf/reflow.py +++ b/src/libprs500/ebooks/lrf/pdf/reflow.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Convert PDF to a reflowable format using pdftoxml.exe as the PDF parsing backend. ''' diff --git a/src/libprs500/ebooks/lrf/rtf/__init__.py b/src/libprs500/ebooks/lrf/rtf/__init__.py index 26054c3b0f..c705e32a66 100644 --- a/src/libprs500/ebooks/lrf/rtf/__init__.py +++ b/src/libprs500/ebooks/lrf/rtf/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. \ No newline at end of file +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' \ No newline at end of file diff --git a/src/libprs500/ebooks/lrf/rtf/convert_from.py b/src/libprs500/ebooks/lrf/rtf/convert_from.py index 21b66dc9ec..de78122671 100644 --- a/src/libprs500/ebooks/lrf/rtf/convert_from.py +++ b/src/libprs500/ebooks/lrf/rtf/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, sys, tempfile, subprocess, shutil, logging, glob from libprs500.ebooks.lrf import option_parser as lrf_option_parser diff --git a/src/libprs500/ebooks/lrf/tags.py b/src/libprs500/ebooks/lrf/tags.py index 61da0bf646..69415d45a6 100644 --- a/src/libprs500/ebooks/lrf/tags.py +++ b/src/libprs500/ebooks/lrf/tags.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' import struct diff --git a/src/libprs500/ebooks/lrf/txt/__init__.py b/src/libprs500/ebooks/lrf/txt/__init__.py index 5586282c18..c705e32a66 100644 --- a/src/libprs500/ebooks/lrf/txt/__init__.py +++ b/src/libprs500/ebooks/lrf/txt/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. \ No newline at end of file +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' \ No newline at end of file diff --git a/src/libprs500/ebooks/lrf/txt/convert_from.py b/src/libprs500/ebooks/lrf/txt/convert_from.py index d466e8f2f9..4b869378db 100644 --- a/src/libprs500/ebooks/lrf/txt/convert_from.py +++ b/src/libprs500/ebooks/lrf/txt/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Convert .txt files to .lrf """ diff --git a/src/libprs500/ebooks/lrf/web/__init__.py b/src/libprs500/ebooks/lrf/web/__init__.py index b89a157b44..7ae640c34c 100644 --- a/src/libprs500/ebooks/lrf/web/__init__.py +++ b/src/libprs500/ebooks/lrf/web/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from libprs500.ebooks.lrf.web.profiles.nytimes import NYTimes from libprs500.ebooks.lrf.web.profiles.bbc import BBC diff --git a/src/libprs500/ebooks/lrf/web/convert_from.py b/src/libprs500/ebooks/lrf/web/convert_from.py index 5b8e824508..6227a4fa1e 100644 --- a/src/libprs500/ebooks/lrf/web/convert_from.py +++ b/src/libprs500/ebooks/lrf/web/convert_from.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Convert websites into LRF files.''' import sys, time, tempfile, shutil, os, logging, imp, inspect, re diff --git a/src/libprs500/ebooks/lrf/web/profiles/__init__.py b/src/libprs500/ebooks/lrf/web/profiles/__init__.py index d0817e39e0..ce67fb1b08 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/__init__.py +++ b/src/libprs500/ebooks/lrf/web/profiles/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Contains the Base Profiles that can be used to easily create profiles to download particular websites. diff --git a/src/libprs500/ebooks/lrf/web/profiles/atlantic.py b/src/libprs500/ebooks/lrf/web/profiles/atlantic.py index 6bd3944db6..d2fa00af1e 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/atlantic.py +++ b/src/libprs500/ebooks/lrf/web/profiles/atlantic.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import re from libprs500.ebooks.lrf.web.profiles import DefaultProfile from libprs500.ebooks.BeautifulSoup import BeautifulSoup diff --git a/src/libprs500/ebooks/lrf/web/profiles/automatic.py b/src/libprs500/ebooks/lrf/web/profiles/automatic.py index edacf12434..376055392b 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/automatic.py +++ b/src/libprs500/ebooks/lrf/web/profiles/automatic.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os from libprs500.ebooks.lrf.web.profiles import DefaultProfile diff --git a/src/libprs500/ebooks/lrf/web/profiles/bbc.py b/src/libprs500/ebooks/lrf/web/profiles/bbc.py index a1cd437c44..cdd2b79286 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/bbc.py +++ b/src/libprs500/ebooks/lrf/web/profiles/bbc.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch the BBC. ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/cnn.py b/src/libprs500/ebooks/lrf/web/profiles/cnn.py index d3e151c318..c0f92c8937 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/cnn.py +++ b/src/libprs500/ebooks/lrf/web/profiles/cnn.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Profile to download CNN ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/dilbert.py b/src/libprs500/ebooks/lrf/web/profiles/dilbert.py index 83056c746a..be7ea39545 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/dilbert.py +++ b/src/libprs500/ebooks/lrf/web/profiles/dilbert.py @@ -1,19 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## Costomized to Dilbert by S. Dorscht and "Stenis" -## Version 0.02 -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/economist.py b/src/libprs500/ebooks/lrf/web/profiles/economist.py index eb04ff370a..0f57247efb 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/economist.py +++ b/src/libprs500/ebooks/lrf/web/profiles/economist.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch The Economist. ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/faznet.py b/src/libprs500/ebooks/lrf/web/profiles/faznet.py index d1db24be92..361df0b7d8 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/faznet.py +++ b/src/libprs500/ebooks/lrf/web/profiles/faznet.py @@ -1,20 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## Costomized to FAZ.NET by S. Dorscht stdoonline@googlemail.com -## Version 0.10 -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Profile to download FAZ.net ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/newsweek.py b/src/libprs500/ebooks/lrf/web/profiles/newsweek.py index e59430f215..b590c8a4b2 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/newsweek.py +++ b/src/libprs500/ebooks/lrf/web/profiles/newsweek.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Profile to download Newsweek ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/nytimes.py b/src/libprs500/ebooks/lrf/web/profiles/nytimes.py index eea8e41833..67c2a9bc72 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/nytimes.py +++ b/src/libprs500/ebooks/lrf/web/profiles/nytimes.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Profile to download the New York Times ''' diff --git a/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py b/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py index 3bcf5eb6d1..ee1cf9fe83 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py +++ b/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py @@ -1,19 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## Costomized to spiegel.de by S. Dorscht stdoonline@googlemail.com -## Version 0.10 -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch Spiegel Online. diff --git a/src/libprs500/ebooks/lrf/web/profiles/zeitde.py b/src/libprs500/ebooks/lrf/web/profiles/zeitde.py index 917c405645..964426ece7 100644 --- a/src/libprs500/ebooks/lrf/web/profiles/zeitde.py +++ b/src/libprs500/ebooks/lrf/web/profiles/zeitde.py @@ -1,19 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## Costomized to Die Zeit by S. Dorscht stdoonline@googlemail.com -## Version 0.08 -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch Die Zeit. diff --git a/src/libprs500/ebooks/metadata/__init__.py b/src/libprs500/ebooks/metadata/__init__.py index 544bb6c3d0..5363c74777 100644 --- a/src/libprs500/ebooks/metadata/__init__.py +++ b/src/libprs500/ebooks/metadata/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Provides metadata editing support for PDF and RTF files. For LRF metadata, use the L{lrf.meta} module. diff --git a/src/libprs500/ebooks/metadata/epub.py b/src/libprs500/ebooks/metadata/epub.py index 2dd4d3ccc7..e1ecbdb057 100644 --- a/src/libprs500/ebooks/metadata/epub.py +++ b/src/libprs500/ebooks/metadata/epub.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Read meta information from epub files''' from __future__ import with_statement diff --git a/src/libprs500/ebooks/metadata/html.py b/src/libprs500/ebooks/metadata/html.py index cf9df87f2a..f10ecd95ea 100644 --- a/src/libprs500/ebooks/metadata/html.py +++ b/src/libprs500/ebooks/metadata/html.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Try to read metadata from an HTML file. ''' diff --git a/src/libprs500/ebooks/metadata/isbndb.py b/src/libprs500/ebooks/metadata/isbndb.py index 265f327506..5f8797e3e1 100644 --- a/src/libprs500/ebooks/metadata/isbndb.py +++ b/src/libprs500/ebooks/metadata/isbndb.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Interface to isbndb.com. My key HLLXQX2A. ''' diff --git a/src/libprs500/ebooks/metadata/library_thing.py b/src/libprs500/ebooks/metadata/library_thing.py index dd5f1c2eb1..a2fd38e743 100644 --- a/src/libprs500/ebooks/metadata/library_thing.py +++ b/src/libprs500/ebooks/metadata/library_thing.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch cover from LibraryThing.com based on ISBN number. ''' diff --git a/src/libprs500/ebooks/metadata/lit.py b/src/libprs500/ebooks/metadata/lit.py index 9742048e85..2651840e4e 100644 --- a/src/libprs500/ebooks/metadata/lit.py +++ b/src/libprs500/ebooks/metadata/lit.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Support for reading the metadata from a lit file. ''' diff --git a/src/libprs500/ebooks/metadata/meta.py b/src/libprs500/ebooks/metadata/meta.py index ed78f39a14..7886265cc5 100644 --- a/src/libprs500/ebooks/metadata/meta.py +++ b/src/libprs500/ebooks/metadata/meta.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, re, collections diff --git a/src/libprs500/ebooks/metadata/opf.py b/src/libprs500/ebooks/metadata/opf.py index 73d88f7145..2c9506d0d6 100644 --- a/src/libprs500/ebooks/metadata/opf.py +++ b/src/libprs500/ebooks/metadata/opf.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import uuid '''Read/Write metadata from Open Packaging Format (.opf) files.''' diff --git a/src/libprs500/ebooks/metadata/pdf.py b/src/libprs500/ebooks/metadata/pdf.py index 761589da7b..77ee807490 100644 --- a/src/libprs500/ebooks/metadata/pdf.py +++ b/src/libprs500/ebooks/metadata/pdf.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Read meta information from PDF files''' import sys, os diff --git a/src/libprs500/ebooks/metadata/rtf.py b/src/libprs500/ebooks/metadata/rtf.py index 09ef7e601f..943bd45ac5 100644 --- a/src/libprs500/ebooks/metadata/rtf.py +++ b/src/libprs500/ebooks/metadata/rtf.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ Edit metadata in RTF files. """ diff --git a/src/libprs500/ebooks/metadata/toc.py b/src/libprs500/ebooks/metadata/toc.py index 36efb6e30e..6c3f5cfb6d 100644 --- a/src/libprs500/ebooks/metadata/toc.py +++ b/src/libprs500/ebooks/metadata/toc.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, glob from urlparse import urlparse from urllib import unquote diff --git a/src/libprs500/ebooks/mobi/__init__.py b/src/libprs500/ebooks/mobi/__init__.py index daf3c2852a..55bc030796 100644 --- a/src/libprs500/ebooks/mobi/__init__.py +++ b/src/libprs500/ebooks/mobi/__init__.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' class MobiError(Exception): pass diff --git a/src/libprs500/ebooks/mobi/huffcdic.py b/src/libprs500/ebooks/mobi/huffcdic.py index 34d8ac672c..7a8cfb19a4 100644 --- a/src/libprs500/ebooks/mobi/huffcdic.py +++ b/src/libprs500/ebooks/mobi/huffcdic.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Decompress MOBI files compressed with the Huff/cdic algorithm. Code thanks to darkninja and igorsk. diff --git a/src/libprs500/ebooks/mobi/palmdoc.py b/src/libprs500/ebooks/mobi/palmdoc.py index 68972cef4e..30d0905973 100644 --- a/src/libprs500/ebooks/mobi/palmdoc.py +++ b/src/libprs500/ebooks/mobi/palmdoc.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' COUNT_BITS = 3 diff --git a/src/libprs500/ebooks/mobi/reader.py b/src/libprs500/ebooks/mobi/reader.py index c89daa1ae8..90ad37ecbb 100644 --- a/src/libprs500/ebooks/mobi/reader.py +++ b/src/libprs500/ebooks/mobi/reader.py @@ -1,19 +1,7 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Read data from .mobi files ''' diff --git a/src/libprs500/gui2/__init__.py b/src/libprs500/gui2/__init__.py index 20877074a7..83140489ce 100644 --- a/src/libprs500/gui2/__init__.py +++ b/src/libprs500/gui2/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ The GUI """ import sys, os, re, StringIO, traceback from PyQt4.QtCore import QVariant, QFileInfo, QObject, SIGNAL, QBuffer, \ diff --git a/src/libprs500/gui2/device.py b/src/libprs500/gui2/device.py index b6bee50e6d..930d3e7bce 100644 --- a/src/libprs500/gui2/device.py +++ b/src/libprs500/gui2/device.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.Warning +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal 'Warning import os, traceback from PyQt4.QtCore import QThread, SIGNAL, QObject diff --git a/src/libprs500/gui2/dialogs/__init__.py b/src/libprs500/gui2/dialogs/__init__.py index c0f46e2f0b..35fe75b80f 100644 --- a/src/libprs500/gui2/dialogs/__init__.py +++ b/src/libprs500/gui2/dialogs/__init__.py @@ -1,15 +1,3 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Various dialogs used in the GUI''' diff --git a/src/libprs500/gui2/dialogs/choose_format.py b/src/libprs500/gui2/dialogs/choose_format.py index d04ed09662..72213d2fe9 100644 --- a/src/libprs500/gui2/dialogs/choose_format.py +++ b/src/libprs500/gui2/dialogs/choose_format.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtGui import QDialog, QListWidgetItem diff --git a/src/libprs500/gui2/dialogs/config.py b/src/libprs500/gui2/dialogs/config.py index 580653c595..8f763015a5 100644 --- a/src/libprs500/gui2/dialogs/config.py +++ b/src/libprs500/gui2/dialogs/config.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os from PyQt4.QtGui import QDialog, QMessageBox, QListWidgetItem, QVBoxLayout diff --git a/src/libprs500/gui2/dialogs/conversion_error.py b/src/libprs500/gui2/dialogs/conversion_error.py index 10b343b5db..518b5e29e6 100644 --- a/src/libprs500/gui2/dialogs/conversion_error.py +++ b/src/libprs500/gui2/dialogs/conversion_error.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtGui import QDialog from libprs500.gui2.dialogs.conversion_error_ui import Ui_ConversionErrorDialog diff --git a/src/libprs500/gui2/dialogs/fetch_metadata.py b/src/libprs500/gui2/dialogs/fetch_metadata.py index 75a26b878c..6b9bd12fa0 100644 --- a/src/libprs500/gui2/dialogs/fetch_metadata.py +++ b/src/libprs500/gui2/dialogs/fetch_metadata.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' GUI for fetching metadata from servers. ''' diff --git a/src/libprs500/gui2/dialogs/jobs.py b/src/libprs500/gui2/dialogs/jobs.py index 002ace89f3..19b79d63f8 100644 --- a/src/libprs500/gui2/dialogs/jobs.py +++ b/src/libprs500/gui2/dialogs/jobs.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Display active jobs''' from PyQt4.QtCore import Qt, QObject, SIGNAL diff --git a/src/libprs500/gui2/dialogs/lrf_single.py b/src/libprs500/gui2/dialogs/lrf_single.py index c4e61c6566..7a02c8c8fe 100644 --- a/src/libprs500/gui2/dialogs/lrf_single.py +++ b/src/libprs500/gui2/dialogs/lrf_single.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, cPickle, codecs from PyQt4.QtCore import QObject, SIGNAL, Qt, QVariant, QByteArray diff --git a/src/libprs500/gui2/dialogs/metadata_bulk.py b/src/libprs500/gui2/dialogs/metadata_bulk.py index 959893141d..1e568127e0 100644 --- a/src/libprs500/gui2/dialogs/metadata_bulk.py +++ b/src/libprs500/gui2/dialogs/metadata_bulk.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''Dialog to edit metadata in bulk''' diff --git a/src/libprs500/gui2/dialogs/metadata_single.py b/src/libprs500/gui2/dialogs/metadata_single.py index fe32408f8d..63c6132544 100644 --- a/src/libprs500/gui2/dialogs/metadata_single.py +++ b/src/libprs500/gui2/dialogs/metadata_single.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' The dialog used to edit meta information for a book as well as add/remove formats diff --git a/src/libprs500/gui2/dialogs/password.py b/src/libprs500/gui2/dialogs/password.py index 3f4124460d..b3b3af7150 100644 --- a/src/libprs500/gui2/dialogs/password.py +++ b/src/libprs500/gui2/dialogs/password.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtGui import QDialog, QLineEdit from PyQt4.QtCore import QVariant, SIGNAL, Qt diff --git a/src/libprs500/gui2/dialogs/search.py b/src/libprs500/gui2/dialogs/search.py index 4a4c943bfd..05909cc3de 100644 --- a/src/libprs500/gui2/dialogs/search.py +++ b/src/libprs500/gui2/dialogs/search.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import re from PyQt4.QtGui import QWidget, QDialog, QVBoxLayout from PyQt4.QtCore import SIGNAL diff --git a/src/libprs500/gui2/dialogs/tag_editor.py b/src/libprs500/gui2/dialogs/tag_editor.py index ac2b5276b0..55ab38ed12 100644 --- a/src/libprs500/gui2/dialogs/tag_editor.py +++ b/src/libprs500/gui2/dialogs/tag_editor.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtCore import SIGNAL, Qt from PyQt4.QtGui import QDialog, QMessageBox diff --git a/src/libprs500/gui2/dialogs/user_profiles.py b/src/libprs500/gui2/dialogs/user_profiles.py index 6dc38cea13..ab0307199a 100644 --- a/src/libprs500/gui2/dialogs/user_profiles.py +++ b/src/libprs500/gui2/dialogs/user_profiles.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import time from PyQt4.QtCore import SIGNAL diff --git a/src/libprs500/gui2/jobs.py b/src/libprs500/gui2/jobs.py index a71aa92624..817b1c34c1 100644 --- a/src/libprs500/gui2/jobs.py +++ b/src/libprs500/gui2/jobs.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import traceback, logging, collections, time from PyQt4.QtCore import QAbstractTableModel, QMutex, QObject, SIGNAL, Qt, \ diff --git a/src/libprs500/gui2/library.py b/src/libprs500/gui2/library.py index 2d4bf122c8..1c805d2c89 100644 --- a/src/libprs500/gui2/library.py +++ b/src/libprs500/gui2/library.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, textwrap, traceback, time, re, sre_constants, urllib, locale from datetime import timedelta, datetime from operator import attrgetter diff --git a/src/libprs500/gui2/lrf_renderer/__init__.py b/src/libprs500/gui2/lrf_renderer/__init__.py index 24c4e11424..7b0d098045 100644 --- a/src/libprs500/gui2/lrf_renderer/__init__.py +++ b/src/libprs500/gui2/lrf_renderer/__init__.py @@ -1,16 +1,4 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/gui2/lrf_renderer/bookview.py b/src/libprs500/gui2/lrf_renderer/bookview.py index 8b12a5a5f7..8d81892200 100644 --- a/src/libprs500/gui2/lrf_renderer/bookview.py +++ b/src/libprs500/gui2/lrf_renderer/bookview.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtGui import QGraphicsView from PyQt4.QtCore import QSize diff --git a/src/libprs500/gui2/lrf_renderer/document.py b/src/libprs500/gui2/lrf_renderer/document.py index 0f4dfae4a4..e25104d069 100644 --- a/src/libprs500/gui2/lrf_renderer/document.py +++ b/src/libprs500/gui2/lrf_renderer/document.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import collections, itertools from PyQt4.QtCore import Qt, QByteArray, SIGNAL diff --git a/src/libprs500/gui2/lrf_renderer/main.py b/src/libprs500/gui2/lrf_renderer/main.py index a98ae49c08..7dfb9f92bb 100644 --- a/src/libprs500/gui2/lrf_renderer/main.py +++ b/src/libprs500/gui2/lrf_renderer/main.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import sys, logging, os, traceback, time, cPickle from PyQt4.QtGui import QApplication, QKeySequence, QPainter, QDialog diff --git a/src/libprs500/gui2/lrf_renderer/text.py b/src/libprs500/gui2/lrf_renderer/text.py index 1526d6429c..8abf9293f8 100644 --- a/src/libprs500/gui2/lrf_renderer/text.py +++ b/src/libprs500/gui2/lrf_renderer/text.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import sys, collections, operator, copy, re from PyQt4.QtCore import Qt, QRectF, QString diff --git a/src/libprs500/gui2/main.py b/src/libprs500/gui2/main.py index 7a336beb3c..151253e222 100644 --- a/src/libprs500/gui2/main.py +++ b/src/libprs500/gui2/main.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.Warning +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal 'Warning import os, sys, textwrap, collections, traceback, shutil, time from PyQt4.QtCore import Qt, SIGNAL, QObject, QCoreApplication, \ diff --git a/src/libprs500/gui2/main_window.py b/src/libprs500/gui2/main_window.py index 7d4cb401e7..2a94913a8c 100644 --- a/src/libprs500/gui2/main_window.py +++ b/src/libprs500/gui2/main_window.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import StringIO, traceback, sys diff --git a/src/libprs500/gui2/make.py b/src/libprs500/gui2/make.py index 34cfb34c50..d61fb2ec61 100644 --- a/src/libprs500/gui2/make.py +++ b/src/libprs500/gui2/make.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Manage the PyQt build system pyrcc4, pylupdate4, lrelease and friends. ''' diff --git a/src/libprs500/gui2/news.py b/src/libprs500/gui2/news.py index ddc2112bea..78eadf7b60 100644 --- a/src/libprs500/gui2/news.py +++ b/src/libprs500/gui2/news.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from PyQt4.QtCore import QObject, SIGNAL, QFile from PyQt4.QtGui import QMenu, QIcon, QDialog, QAction diff --git a/src/libprs500/gui2/status.py b/src/libprs500/gui2/status.py index f6503dfd06..d5525be4d2 100644 --- a/src/libprs500/gui2/status.py +++ b/src/libprs500/gui2/status.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import textwrap from PyQt4.QtGui import QStatusBar, QMovie, QLabel, QFrame, QHBoxLayout, QPixmap, \ diff --git a/src/libprs500/gui2/update.py b/src/libprs500/gui2/update.py index eb5a6a5014..bcb85632b4 100644 --- a/src/libprs500/gui2/update.py +++ b/src/libprs500/gui2/update.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import urllib, re, traceback diff --git a/src/libprs500/gui2/widgets.py b/src/libprs500/gui2/widgets.py index 3af2cb60b4..281b6cdaa2 100644 --- a/src/libprs500/gui2/widgets.py +++ b/src/libprs500/gui2/widgets.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Miscellaneous widgets used in the GUI ''' diff --git a/src/libprs500/library/__init__.py b/src/libprs500/library/__init__.py index 8edb9de1af..da3f2e964d 100644 --- a/src/libprs500/library/__init__.py +++ b/src/libprs500/library/__init__.py @@ -1,15 +1,3 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Code to manage ebook library''' \ No newline at end of file diff --git a/src/libprs500/library/database.py b/src/libprs500/library/database.py index bdb84874f3..04e885a1b7 100644 --- a/src/libprs500/library/database.py +++ b/src/libprs500/library/database.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Backend that implements storage of ebooks in an sqlite database. ''' diff --git a/src/libprs500/libunrar.py b/src/libprs500/libunrar.py index ae67d8f539..abc24b6cf1 100644 --- a/src/libprs500/libunrar.py +++ b/src/libprs500/libunrar.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' """ This module provides a thin ctypes based wrapper around libunrar. diff --git a/src/libprs500/libunzip.py b/src/libprs500/libunzip.py index b26858c921..edabe8f732 100644 --- a/src/libprs500/libunzip.py +++ b/src/libprs500/libunzip.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import os, zipfile from cStringIO import StringIO diff --git a/src/libprs500/libwand.py b/src/libprs500/libwand.py index b791034d6c..b1095d3c12 100644 --- a/src/libprs500/libwand.py +++ b/src/libprs500/libwand.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import ctypes, os, sys from libprs500 import iswindows, isosx diff --git a/src/libprs500/linux.py b/src/libprs500/linux.py index e982c5a5a3..2928531ae2 100644 --- a/src/libprs500/linux.py +++ b/src/libprs500/linux.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.Warning +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal 'Warning import shutil ''' Post installation script for linux ''' import sys, os, re diff --git a/src/libprs500/manual/custom.py b/src/libprs500/manual/custom.py index 29a29693c1..4ab1154295 100644 --- a/src/libprs500/manual/custom.py +++ b/src/libprs500/manual/custom.py @@ -1,20 +1,8 @@ #!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -## Copyright © 2008 -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import shutil, sys, os, inspect, re from sphinx.builder import StandaloneHTMLBuilder, bold from sphinx.util import rpartition diff --git a/src/libprs500/parallel.py b/src/libprs500/parallel.py index efd9a67cf8..ffba7a6257 100644 --- a/src/libprs500/parallel.py +++ b/src/libprs500/parallel.py @@ -1,17 +1,5 @@ -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Used to run jobs in parallel in separate processes. ''' @@ -165,4 +153,4 @@ def main(): return 0 if __name__ == '__main__': - sys.exit(main()) \ No newline at end of file + sys.exit(main()) diff --git a/src/libprs500/ptempfile.py b/src/libprs500/ptempfile.py index 584bb5c158..8f62185bbb 100644 --- a/src/libprs500/ptempfile.py +++ b/src/libprs500/ptempfile.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.Warning +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal 'Warning """ Provides platform independent temporary files that persist even after being closed. diff --git a/src/libprs500/terminfo.py b/src/libprs500/terminfo.py index 2114f8ad7f..2141b9115b 100644 --- a/src/libprs500/terminfo.py +++ b/src/libprs500/terminfo.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import sys, re """ Get information about the terminal we are running in """ diff --git a/src/libprs500/trac/__init__.py b/src/libprs500/trac/__init__.py index f2a5caf07b..9aa6b89c83 100644 --- a/src/libprs500/trac/__init__.py +++ b/src/libprs500/trac/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' To test sudo tracd --port 8000 --auth libprs500,/var/www/localhost/htdocs/libprs500/passwd,libprs500 /var/www/localhost/htdocs/libprs500 diff --git a/src/libprs500/trac/plugins/__init__.py b/src/libprs500/trac/plugins/__init__.py index 97ad144cc4..ab32bc9c41 100644 --- a/src/libprs500/trac/plugins/__init__.py +++ b/src/libprs500/trac/plugins/__init__.py @@ -1,15 +1,3 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/trac/plugins/download.py b/src/libprs500/trac/plugins/download.py index 2a4d1d22a8..ea30e14000 100644 --- a/src/libprs500/trac/plugins/download.py +++ b/src/libprs500/trac/plugins/download.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import re, glob from pkg_resources import resource_filename diff --git a/src/libprs500/trac/setup.py b/src/libprs500/trac/setup.py index cb177825cd..ae15f732d0 100644 --- a/src/libprs500/trac/setup.py +++ b/src/libprs500/trac/setup.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from setuptools import find_packages, setup diff --git a/src/libprs500/translations/__init__.py b/src/libprs500/translations/__init__.py index aa095fdcb8..04b0c83ddc 100644 --- a/src/libprs500/translations/__init__.py +++ b/src/libprs500/translations/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Manage translation of user visible strings. ''' diff --git a/src/libprs500/web/__init__.py b/src/libprs500/web/__init__.py index 2d46011db7..cadf21c39f 100644 --- a/src/libprs500/web/__init__.py +++ b/src/libprs500/web/__init__.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/web/feeds/__init__.py b/src/libprs500/web/feeds/__init__.py index eb5037ea4c..389aa9da3b 100644 --- a/src/libprs500/web/feeds/__init__.py +++ b/src/libprs500/web/feeds/__init__.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Contains the logic for parsing feeds. ''' diff --git a/src/libprs500/web/feeds/main.py b/src/libprs500/web/feeds/main.py index 521c53c996..806c7267cd 100644 --- a/src/libprs500/web/feeds/main.py +++ b/src/libprs500/web/feeds/main.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' '''''' import sys, os, logging diff --git a/src/libprs500/web/feeds/news.py b/src/libprs500/web/feeds/news.py index 2057608270..8e661dacd5 100644 --- a/src/libprs500/web/feeds/news.py +++ b/src/libprs500/web/feeds/news.py @@ -1,18 +1,6 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Defines various abstract base classes that can be subclassed to create powerful news fetching recipes. ''' diff --git a/src/libprs500/web/feeds/recipes/__init__.py b/src/libprs500/web/feeds/recipes/__init__.py index 387393d881..7fa489d73f 100644 --- a/src/libprs500/web/feeds/recipes/__init__.py +++ b/src/libprs500/web/feeds/recipes/__init__.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Builtin recipes. ''' diff --git a/src/libprs500/web/feeds/recipes/atlantic.py b/src/libprs500/web/feeds/recipes/atlantic.py index 99690052a3..d2ffc66f38 100644 --- a/src/libprs500/web/feeds/recipes/atlantic.py +++ b/src/libprs500/web/feeds/recipes/atlantic.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' theatlantic.com ''' diff --git a/src/libprs500/web/feeds/recipes/bbc.py b/src/libprs500/web/feeds/recipes/bbc.py index bf455cb6e8..1924378477 100644 --- a/src/libprs500/web/feeds/recipes/bbc.py +++ b/src/libprs500/web/feeds/recipes/bbc.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' bbc.co.uk ''' diff --git a/src/libprs500/web/feeds/recipes/dilbert.py b/src/libprs500/web/feeds/recipes/dilbert.py index 5daa8be964..0f44c88ace 100644 --- a/src/libprs500/web/feeds/recipes/dilbert.py +++ b/src/libprs500/web/feeds/recipes/dilbert.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Daily Dilbert ''' diff --git a/src/libprs500/web/feeds/recipes/economist.py b/src/libprs500/web/feeds/recipes/economist.py index d447603e74..c3faff859f 100644 --- a/src/libprs500/web/feeds/recipes/economist.py +++ b/src/libprs500/web/feeds/recipes/economist.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' economist.com ''' diff --git a/src/libprs500/web/feeds/recipes/newsweek.py b/src/libprs500/web/feeds/recipes/newsweek.py index 4ce3258531..9bfb20d0bd 100644 --- a/src/libprs500/web/feeds/recipes/newsweek.py +++ b/src/libprs500/web/feeds/recipes/newsweek.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' import re, string, time from libprs500.web.feeds.news import BasicNewsRecipe from libprs500.ebooks.BeautifulSoup import BeautifulSoup diff --git a/src/libprs500/web/feeds/recipes/nytimes.py b/src/libprs500/web/feeds/recipes/nytimes.py index 8749c399d6..631b984609 100644 --- a/src/libprs500/web/feeds/recipes/nytimes.py +++ b/src/libprs500/web/feeds/recipes/nytimes.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' nytimes.com ''' diff --git a/src/libprs500/web/feeds/recipes/outlook_india.py b/src/libprs500/web/feeds/recipes/outlook_india.py index 01e509fdf6..5059ef52ad 100644 --- a/src/libprs500/web/feeds/recipes/outlook_india.py +++ b/src/libprs500/web/feeds/recipes/outlook_india.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' outlookindia.com ''' diff --git a/src/libprs500/web/feeds/recipes/portfolio.py b/src/libprs500/web/feeds/recipes/portfolio.py index 5931b9b3a4..1d2aa0c572 100644 --- a/src/libprs500/web/feeds/recipes/portfolio.py +++ b/src/libprs500/web/feeds/recipes/portfolio.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' portfolio.com ''' diff --git a/src/libprs500/web/feeds/recipes/usatoday.py b/src/libprs500/web/feeds/recipes/usatoday.py index 196db8845c..3f853e31ef 100644 --- a/src/libprs500/web/feeds/recipes/usatoday.py +++ b/src/libprs500/web/feeds/recipes/usatoday.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' usatoday.com ''' diff --git a/src/libprs500/web/feeds/templates.py b/src/libprs500/web/feeds/templates.py index 968388ede2..419e7549a9 100644 --- a/src/libprs500/web/feeds/templates.py +++ b/src/libprs500/web/feeds/templates.py @@ -1,19 +1,7 @@ #!/usr/bin/env python -## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' from genshi.template import MarkupTemplate diff --git a/src/libprs500/web/fetch/__init__.py b/src/libprs500/web/fetch/__init__.py index aaf49de99e..f832dbb7fc 100644 --- a/src/libprs500/web/fetch/__init__.py +++ b/src/libprs500/web/fetch/__init__.py @@ -1,14 +1,2 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' diff --git a/src/libprs500/web/fetch/simple.py b/src/libprs500/web/fetch/simple.py index e06786f52a..ca160f530b 100644 --- a/src/libprs500/web/fetch/simple.py +++ b/src/libprs500/web/fetch/simple.py @@ -1,17 +1,5 @@ -## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Fetch a webpage and its links recursively. The webpages are saved to disk in UTF-8 encoding with any charset declarations removed. diff --git a/windows_installer.py b/windows_installer.py index dab86ce0fa..5cec01b95b 100644 --- a/windows_installer.py +++ b/windows_installer.py @@ -1,17 +1,5 @@ -## Copyright (C) 2006 Kovid Goyal kovid@kovidgoyal.net -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program 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 General Public License for more details. -## -## You should have received a copy of the GNU General Public License along -## with this program; if not, write to the Free Software Foundation, Inc., -## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +__license__ = 'GPL v3' +__copyright__ = '2008, Kovid Goyal ' ''' Create a windows installer ''' import sys, re, os, shutil, subprocess from setup import VERSION, APPNAME, entry_points, scripts, basenames