web2py Application Development Cookbook

Author: Mariano Reingart, et al.
Publisher: Packt Publishing
Pages: 364
ISBN: 978-1849515467
Aimed at: Beginner to intermediate web2py programmers Rating: 4
Pros: Easy to read with lots of good recipes sprinkled throughout
Cons: Minor issues with spelling and grammar and some of the code examples seemed incomplete
Reviewed by: Michael Driscoll

A new cookbook for web2py, the Python web framework. Does it provide the answers you need?

I have read about web2py on several occasions, but never used it myself. If you've not come across it, web2py is a free, open source web framework written in Python, similar to Django or TurboGears. It includes a web-based IDE to help you manage your web applications. Web2py also includes a database abstraction layer or object relational mapper, similar to SQLAlchemy that will help Python developers connect to many database backends easily.

This new cookbook about web2py has been written by seven authors, namely: Richard Gordon, Pablo Martin Mulone, Mariano Reingart, Bruno Cezar Rocha, Massimo Di Pierro, Michele Comitini and Jonathan Lundell. I have to admit that I wondered how you could have a coherent book with so many authors, but since it's a cookbook, it works out pretty well.

 

Banner

 

Let's take a quick walkthrough of what's in the book. Chapter 1 is about deploying web2py to various backends. While a little dull, I think this section could be very helpful for deployment. The second chapter is mostly about improving on the "scaffolds" application that comes with web2py. Chapter 3 covers how web2py interacts with databases and various CSV manipulations. Number four covers advanced forms such as multiple forms on one page. I don't find JavaScript very interesting right now, so Chapter 5′s topic of AJAX didn't do much for me.

Chapter 6 covers some third party libraries, like Twitter connectivity, customizing logging, etc. In Chapter 7 we learn about web services and in 8 we go over authentication and authorization techniques. Chapter 9 is all about custom URL routing.

For Chapter 10, we learn various ways to create PDF reports. The last chapter is a collection of recipes that didn't really fit anywhere else and are pretty random. From PDB integration to using web2py with wxPython, it covers a wide array of topics.

Let'sl cover some of the bad aspectsof the book first, as I like to finish with the good. I found lots of silly issues that a normal spell check program should have flagged. The writing isn't compelling either, but most cookbooks I've read are that way. It may be dry, but it does a decent job of explaining most of the recipes. Some are explained more than others. This is also pretty standard in a cookbook. I'm not knocking the authors for the poor editing as that's not their job and I can tell that several if not all are not native English speakers. I'm sure they did their best.

What I liked most is that this book actually has recipes that I not only thought were interesting but that I could see myself actually using. There are recipes for integrating PayPal payments, creating CAPTCHAs, building Facebook and Reddit clones, various web service consumer recipes, and some debugging stuff at the end. I was especially interested in the PayPal stuff as I just haven't seen much in the Python web framework world about payment systems in general.

The PDF integration was also interesting in that web2py can use reportlab, LaTeX or pyfpdf. I'd never heard of the last one, so that was interesting in and of itself. There really isn't the space to go over all the recipes that caught my eye. I will point out that most of the examples are incomplete, probably because there just isn't space. Fortunately, you can download the full source code from Packt's website. I should also note that some chapters seem to have more JavaScript than Python. That may be expected, but I was still a little surprised by it. Because the code is incomplete, I didn't try to run it from the book. I don't really recommend that anyway when it's not all there.

Developers who would get the most out of this book are probably beginners to intermediate web2py programmers who would like to increase their skill set. I think there are lots of nifty tricks to be learned from this book and I hope to try them out at some point.

 

Banner


Deep Learning (No Starch Press)

Author: Andrew Glassner
Publisher: No Starch Press
Date: July 2021
Pages: 750
ISBN: 978-1718500723
Print: 1718500726
Kindle: ‎ B085BVWXNS
Audience: Developers interested in deep learning
Rating: Mike James
Reviewer: 5
A book on deep learning wtihout an equation in sight?



Web Design, 7e (In Easy Steps)

Author: Sean McManus
Publisher: Easy Steps, 7th Ed, 2023
Pages: 228
ISBN: 978-1840789850
Print: 1840789859
Kindle: B0C24YV788
Audience:
Rating: 4
Reviewed by: Sue Gee
Web design without a designer - is it possible?


More Reviews

Last Updated ( Thursday, 14 June 2012 )