# about.py - plugin to list some information about used plugins # # Copyright (C) 1998, 1999 Albert Hopkins (marduk) # Copyright (C) 2002 Mike W. Meyer # Copyright (C) 2005 Arthur de Jong # # 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 St, Fifth Floor, Boston, MA 02110-1301 USA # # The files produced as output from the software do not automatically fall # under the copyright of the software, unless explicitly stated otherwise. """Present an overview of the plugins that are used.""" __title__ = 'about webcheck' __author__ = 'Arthur de Jong' #__description__ = 'This is a more detailed view of the used plugins.' import config import plugins import time def generate(fp,site): """Output a list of modules, it's authors and it's version to the file descriptor.""" # TODO: xxx links weere fetched, xxx pages were examined and a total of xxx notes and problems were found # TODO: include some runtime information (e.g. supported schemes, user configuration, etc) # output some general information about the report fp.write( '
\n' \ ' This is a website report generated by webcheck %(version)s.\n' ' webcheck is a website checking tool for webmasters. It\n' ' crawls a given website and does a number of tests to see if links\n' ' and pages are valid.\n' \ ' More information about webcheck can be found at the\n' \ ' webcheck homepage which is located at\n' \ ' %(homepage)s.\n' \ '
\n' \ '\n' \ ' This report was generated on %(time)s, a total of %(numurls)d links were found.\n' '
\n\n' \ % { 'version': plugins.escape(config.VERSION), 'time': plugins.escape(time.ctime(time.time())), 'numurls': len(site.linkMap), 'homepage': config.HOMEPAGE } ) # output copyright information fp.write( '\n' \ ' webcheck was originally named linbot which was developed\n' \ ' by Albert Hopkins (marduk).\n' \ ' Versions up till 1.0 were maintained by Mike W. Meyer who changed the name\n' \ ' to webcheck.\n' \ ' After that Arthur de Jong took up the work and did a complete rewrite.\n' \ '
\n' \ '\n' \
' Copyright © 1998, 1999 Albert Hopkins (marduk)
\n' \
' Copyright © 2002 Mike W. Meyer
\n' \
' Copyright © 2005 Arthur de Jong\n' \
'
\n' \ ' This program is free software; you can redistribute it and/or\n' \ ' modify it under the terms of the GNU General Public License as published\n' \ ' by the Free Software Foundation; either version 2, or (at your option) any\n' \ ' later version.\n' \ '
\n' \ '\n' \ ' This program is distributed in the hope that it will be useful, but\n' \ ' without any warranty; without even the implied warranty of\n' \ ' merchantability or fitness for a particular purpose. See the\n' \ ' GNU General Public License for more details.\n' \ '
\n' \ '\n' \ ' A copy of the GNU General Public License is available in the download\n' \ ' and can be found on the World Wide Web at\n' \ ' http://www.gnu.org/copyleft/gpl.html.\n' \ ' You can also obtain it by writing to the Free Software Foundation, Inc.,\n' \ ' 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n' \ '
\n\n' ) # output plugin information fp.write( '