At this point, it's time to revisit web.responder.JsonResponder. The objective is to modify the output sent to the data table in such a manner that all product titles become links to the detail page for that product. Accordingly, in addProductKeyTitlePrice(), notice how title is now wrapped in the following:
<a href="/chapter_06/details.py?product=PRODKEY">TITLE</a>
In the new method, shown here, we loop through incoming and extract information from the product instances. We build a list, temp, which is ultimately added to the internal dictionary, data. Here is the modified block of code:
def addProductKeyTitlePrice(self, key, incoming) :
temp = []
for product in incoming :
prodKey = product.get('productKey')
title = '<a href="/chapter_06/details.py?product='
title += prodKey + '">' + product.get('title') +...