commit 33ad7e67eb3205dc5a56ce76beb59ced871e03d1
parent b764c1f268b22865d3cb6aea7aa047c3465813f9
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 9 Sep 2003 00:58:39 +0000
Debug caching on errors; improve look of generated pages.
svn:r68
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/BibTeX.py b/BibTeX.py
@@ -437,7 +437,8 @@ class BibTeXEntry:
availability.append('<a href="%s">%s</a>' %(url,name))
if availability:
- res.append(" <span class='availability'>(")
+ res.append([" ", " "][cached])
+ res.append("<span class='availability'>(")
if cached: res.append("Cached: ")
res.append(", ".join(availability))
res.append(")</span>")
diff --git 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
@@ -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))