Add new book "PostgreSQL: Up and Running"
authorMagnus Hagander <magnus@hagander.net>
Tue, 1 Jan 2013 17:38:02 +0000 (18:38 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 1 Jan 2013 17:38:02 +0000 (18:38 +0100)
media/img/docs/books/51gStZeVDL._AA160_.jpg [new file with mode: 0644]
templates/pages/docs/books.html
tools/localhtmlvalidate/localhtmlvalidate.py

diff --git a/media/img/docs/books/51gStZeVDL._AA160_.jpg b/media/img/docs/books/51gStZeVDL._AA160_.jpg
new file mode 100644 (file)
index 0000000..e2aa79e
Binary files /dev/null and b/media/img/docs/books/51gStZeVDL._AA160_.jpg differ
index bd55b11e00bdee222a64a176ff2c5fac6e287ea8..c8fed95192657ab4a1027878ecf4f6c49d0b9e38 100644 (file)
@@ -9,6 +9,19 @@
         <th class="colFirst">Cover</th>
         <th class="colLast">Information</th>
 </tr>
+<tr>
+        <td class="colFirst">
+            <a href="http://shop.oreilly.com/product/0636920025061.do"><img src="/media/img/docs/books/51gStZeVDL._AA160_.jpg" alt="PostgreSQL: Up and Running" /></a>
+        </td>
+        <td class="colLast">
+               <b>Title</b>: PostgreSQL: Up and Running<br />
+               <b>Author</b>: Regina Obe, Leo Hsu<br />
+               <b>Language</b>: English<br />
+        <b>Current version at publication</b>: 9.2<br />
+               <b>Format</b>: Paperback<br />
+               <b>Published</b>: July 2012<br />
+        </td>
+</tr>
 <tr>
         <td class="colFirst">
             <a href="http://www.pearson.fr/livre/?GCOI=27440100863920"><img src="/media/img/docs/books/pearson_9782744024832.png" alt="Bases de donnĂ©es PostgreSQL, Gestion des performances" /></a>
index a41ad65911a68612a137932153d3563ce7e5b5b7..03b3928322bfe808d39d4753e56ed0ccb002ec27 100755 (executable)
@@ -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('<div id="pgContentWrap">')
+       try:
+               firstline = contents.splitlines().index('<div id="pgContentWrap">')
+       except ValueError:
+               firstline = 0
 
        # Generate a form body
        body = encode_multipart_formdata([