From b569263f121ba0db041674510dc726d18d081c23 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 9 Sep 2003 00:58:39 +0000 Subject: Debug caching on errors; improve look of generated pages. svn:r68 --- BibTeX.py | 3 ++- Makefile | 3 +++ updateCache.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BibTeX.py b/BibTeX.py index b9d36ec..0e5754e 100644 --- a/BibTeX.py +++ b/BibTeX.py @@ -437,7 +437,8 @@ class BibTeXEntry: availability.append('%s' %(url,name)) if availability: - res.append(" (") + res.append([" ", " "][cached]) + res.append("(") if cached: res.append("Cached: ") res.append(", ".join(availability)) res.append(")") diff --git a/Makefile b/Makefile index cc08220..5c13c70 100644 --- a/Makefile +++ b/Makefile @@ -7,5 +7,8 @@ all: clean: rm -f *~ */*~ *.pyc *.pyo +update: + $(PYTHON) updateCache.py + veryclean: clean rm -f author.html date.html topic.html bibtex.html tmp.bib diff --git a/updateCache.py b/updateCache.py index 5edda3d..75999d0 100644 --- a/updateCache.py +++ b/updateCache.py @@ -120,7 +120,7 @@ def downloadAll(bibtex, missingOnly=0): downloadFile(key, ftype, url) print "Downloaded",url except UIError, e: - print >>sys,stderr, str(e) + print >>sys.stderr, str(e) errors.append((key,ftype,url,str(e))) except (IOError, socket.error), e: msg = "Error downloading %s: %s"%(url,str(e)) -- cgit v1.2.3-70-g09d2