Getting the directory listing
The most recent thing that I figured out (with the help of classmates’ posts and Google) was how to modify the content-type header. Everyone knows that if using mod_python.publisher, one must do the following
def index(req):
req.content_type = 'xml/html'
return "<xml />...."
the /domain/site part of the page
I assumed that to display this page, I had to look it up in the listing first, then look up the id, and then grab and parse the json that corresponds to the id, and return the values in the xml structure given in the lab writeup.
I see that I must put multiple <idea> nodes inside an <idealist> node. How would there be more than one idea in an idea list? currently my implementation is that the search for the domain in the listing will stop if there is a match found. I hope I was right in assuming that there would be only one idea or entry returned per domain query.
Was there some outdated information given here, in the page that lists all of the labs? I don’t think there should have been “sitelist” and “siteinfo” services, unless I misunderstood or missed something about the more detailed lab specs.
DistributedLabs
Lab2 – Build the Listing App Server
* Build second server from base
* Build two services: sitelist, siteinfo
* retrieve data from s3 for appropriate service
* translate backend data into result xml
* respond with xml
* register and deregister with load balancer
* Persist server image to S3
I look forward to getting started on lab 3.