From e7463f6eed9627e348eefa76cbe99ea7d2d440d0 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 23 Jul 2005 12:55:08 +0000 Subject: integrate versio.py into config.py, clean up config.py removing unused settings and clean up boolean types git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@76 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- plugins/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/__init__.py') diff --git a/plugins/__init__.py b/plugins/__init__.py index d47ab40..cf6f8dc 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -26,7 +26,6 @@ import sys import urllib import string import debugio -import version import config import xml.sax.saxutils @@ -93,7 +92,7 @@ def open_file(filename): ow = raw_input('webcheck: overwrite %s? [y]es, [a]ll, [q]uit: ' % fname) ow = ow.lower() + " " if ow[0] == 'a': - config.OVERWRITE_FILES = 1 + config.OVERWRITE_FILES = True elif ow[0] != 'y': print 'Aborted.' sys.exit(0) @@ -142,7 +141,7 @@ def generate(site,plugins): '

Webcheck report for %(sitetitle)s

\n' \ % { 'sitetitle': xml.sax.saxutils.escape(get_title(site.linkMap[site.base])), 'siteurl': site.base, - 'version': version.webcheck }) + 'version': config.VERSION }) # write navigation bar fp.write(navbar) # write plugin heading @@ -162,6 +161,6 @@ def generate(site,plugins): ' \n' \ '\n' \ % { 'time': xml.sax.saxutils.escape(time.ctime(time.time())), - 'homepage': version.home, - 'version': xml.sax.saxutils.escape(version.webcheck) }) + 'homepage': config.HOMEPAGE, + 'version': xml.sax.saxutils.escape(config.VERSION) }) fp.close() -- cgit v1.2.3