aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-09-09 00:58:39 +0000
committerNick Mathewson <nickm@torproject.org>2003-09-09 00:58:39 +0000
commitb569263f121ba0db041674510dc726d18d081c23 (patch)
treeb773ed039b88d2c9017cc8b951223d1843f8b17a
parentc666e2e0794ba284b5a0c0f17d54c4a3233ea187 (diff)
downloadanonbib-b569263f121ba0db041674510dc726d18d081c23.tar.gz
Debug caching on errors; improve look of generated pages.
svn:r68
-rw-r--r--BibTeX.py3
-rw-r--r--Makefile3
-rw-r--r--updateCache.py2
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('<a href="%s">%s</a>' %(url,name))
if availability:
- res.append(" <span class='availability'>(")
+ res.append([" ", "&nbsp;"][cached])
+ res.append("<span class='availability'>(")
if cached: res.append("Cached:&nbsp;")
res.append(",&nbsp;".join(availability))
res.append(")</span>")
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))