diff --git a/media/img/docs/books/51gStZeVDL._AA160_.jpg b/media/img/docs/books/51gStZeVDL._AA160_.jpg new file mode 100644 index 00000000..e2aa79ef Binary files /dev/null and b/media/img/docs/books/51gStZeVDL._AA160_.jpg differ diff --git a/templates/pages/docs/books.html b/templates/pages/docs/books.html index bd55b11e..c8fed951 100644 --- a/templates/pages/docs/books.html +++ b/templates/pages/docs/books.html @@ -9,6 +9,19 @@ Cover Information + + + PostgreSQL: Up and Running + + + Title: PostgreSQL: Up and Running
+ Author: Regina Obe, Leo Hsu
+ Language: English
+ Current version at publication: 9.2
+ Format: Paperback
+ Published: July 2012
+ + Bases de données PostgreSQL, Gestion des performances diff --git a/tools/localhtmlvalidate/localhtmlvalidate.py b/tools/localhtmlvalidate/localhtmlvalidate.py index a41ad659..03b39283 100755 --- a/tools/localhtmlvalidate/localhtmlvalidate.py +++ b/tools/localhtmlvalidate/localhtmlvalidate.py @@ -47,7 +47,10 @@ if __name__=="__main__": contents = urllib.urlopen(sys.argv[1]).read() # Try to figure out where the actual contents start :) - firstline = contents.splitlines().index('
') + try: + firstline = contents.splitlines().index('
') + except ValueError: + firstline = 0 # Generate a form body body = encode_multipart_formdata([