See ChangeLog

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@46 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-03-27 13:34:31 +00:00
parent 9bee34e658
commit f2e68c5614
7 changed files with 23 additions and 14 deletions

View file

@ -1,3 +1,9 @@
27.3.2000
* Fixed misspelled exception in UrlData.py (BugTracker)
* Fixed wrong _time argument in HttpsUrlData.py
(Peter <peterw@waybeat.com.au>)
* Fixed missing env argument in lc.cgi
26.3.2000
* FastCGI fixes
* simplified sz_fcgi.py

View file

@ -1,8 +1,8 @@
VERSION=$(shell ./setup.py -V)
HOST=treasure.calvinsplayground.de
#HOST=treasure.calvinsplayground.de
PROXY=
#PROXY=-P$(HOST):5050
#HOST=fsinfo.cs.uni-sb.de
HOST=fsinfo.cs.uni-sb.de
#PROXY=-Pwww-proxy.uni-sb.de:3128
PACKAGE = linkchecker
DEBPACKAGE = $(PACKAGE)_$(VERSION)_i386.deb

2
lc.cgi
View file

@ -22,7 +22,7 @@ print
#testit()
form = cgi.FieldStorage()
if not linkcheck.lc_cgi.checkform(form):
linkcheck.lc_cgi.logit(form)
linkcheck.lc_cgi.logit(form, form)
linkcheck.lc_cgi.printError(sys.stdout)
sys.exit(0)
config = linkcheck.Config.Configuration()

View file

@ -7,8 +7,9 @@ AppName = "LinkChecker"
App = AppName+" "+Version
UserAgent = AppName+"/"+Version
Author = "Bastian Kleineidam"
HtmlAuthor = "Bastian&nbsp;Kleineidam"
Copyright = "Copyright © 2000 by "+Author
HtmlCopyright = "Copyright &copy; 2000 by "+Author
HtmlCopyright = "Copyright &copy; 2000 by "+HtmlAuthor
AppInfo = App+" "+Copyright
HtmlAppInfo = App+", "+HtmlCopyright
Url = "http://linkchecker.sourceforge.net/"
@ -218,7 +219,7 @@ class Configuration(UserDict.UserDict):
def read(self, files = []):
if not files:
files.insert(0,_norm("~/.pylicerc"))
files.insert(0,_norm("~/.linkcheckerrc"))
if sys.platform=="win32":
if not sys.path[0]:
path=os.getcwd()
@ -226,7 +227,7 @@ class Configuration(UserDict.UserDict):
path=sys.path[0]
else:
path="/etc"
files.insert(0,_norm(join(path, "pylicerc")))
files.insert(0,_norm(join(path, "linkcheckerrc")))
self.readConfig(files)
def warn(self, msg):
@ -292,7 +293,7 @@ class Configuration(UserDict.UserDict):
filelist = string.split(cfgparser.get(section, "fileoutput"))
for arg in filelist:
if Loggers.has_key(arg):
self.data["fileoutput"].append(Loggers[arg](open("pylice-out."+arg, "w")))
self.data["fileoutput"].append(Loggers[arg](open("linkchecker-out."+arg, "w")))
except ConfigParser.Error: pass
section = "authentication"

View file

@ -1,7 +1,7 @@
import re,socket,string,DNS,sys
from HostCheckingUrlData import HostCheckingUrlData
from smtplib import SMTP
from UrlData import LinkCheckException
from UrlData import LinkCheckerException
mailto_re = re.compile("^mailto:"
"([\-\w.]+@[\-\w.?=]+|[\w\s]+<[\-\w.]+@[\-\w.?=]+>)$")
@ -11,7 +11,7 @@ class MailtoUrlData(HostCheckingUrlData):
def buildUrl(self):
HostCheckingUrlData.buildUrl(self)
if not mailto_re.match(self.urlName):
raise LinkCheckException, "Illegal mailto link syntax"
raise LinkCheckerException, "Illegal mailto link syntax"
self.host = self.urlName[7:]
i = string.find(self.host, "<")
j = string.find(self.host, ">")

View file

@ -1,6 +1,6 @@
import telnetlib,re
from HostCheckingUrlData import HostCheckingUrlData
from UrlData import LinkCheckException
from UrlData import LinkCheckerException
telnet_re = re.compile("^telnet:[\w.\-]+$")
@ -10,7 +10,7 @@ class TelnetUrlData(HostCheckingUrlData):
def buildUrl(self):
HostCheckingUrlData.buildUrl(self)
if not telnet_re.match(self.urlName):
raise LinkCheckException, "Illegal telnet link syntax"
raise LinkCheckerException, "Illegal telnet link syntax"
self.host = string.lower(self.urlName[7:])

View file

@ -11,7 +11,7 @@ LinkTags = [("a", "href"),
("meta", "url"),
("area", "href")]
class LinkCheckException(Exception):
class LinkCheckerException(Exception):
pass
class UrlData:
@ -104,8 +104,9 @@ class UrlData:
try:
self.buildUrl()
self.extern = self._getExtern(config)
except LinkCheckerException, msg:
self.setError(msg)
except LinkCheckerException:
type, value = sys.exc_info()[:2]
self.setError(str(value))
self.logMe(config)
return
@ -130,6 +131,7 @@ class UrlData:
self.checkConnection(config)
if self.urlTuple and config["anchors"]:
self.checkAnchors(self.urlTuple[5])
# XXX should only catch some exceptions, not all!
except:
type, value = sys.exc_info()[:2]
self.setError(str(value))