Add new book "PostgreSQL: Up and Running"

This commit is contained in:
Magnus Hagander
2013-01-01 18:38:02 +01:00
parent 86a0b09792
commit a1e9de73e6
3 changed files with 17 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View 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>

View File

@ -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([