The Root Page
Let's start at the top. In this chapter we will study the complete implementation of PyErrata, but readers are also encouraged to visit the web site where it lives to sample the flavor of its interaction first-hand. Unlike PyMailCgi, there are no password constraints in PyErrata, so you can access all of its pages without any configuration steps.
PyErrata installs as a set of HTML files and Python CGI scripts, along with a few image files. As usual, you can simply point your web browser to the system's root page to run the system live while you study this chapter. Its root page currently lives here:[1]
[1] But be sure to see this book's web site, http://rmi.net/~lutz/about-pp.html, for an updated link if the one listed here no longer works by the time you read this book. Web sites seem to change addresses faster than developers change jobs.
http://starship.python.net/~lutz/PyErrata/pyerrata.html
If you go to this address, your browser will be served the page shown in Figure 14-2. PyErrata supports both submission and browsing of comments and error reports; the four main links on this page essentially provide write and read access to its databases over the Web.
Figure 14-2. PyErrata main page
The static HTML code file downloaded to produce this page is listed in Example 14-1. The only parts we're interested in are shown in bold: links to the submission and browsing pages for comments and errata. There is more to this page, but we're only dealing with the parts shown in the screen shot. For instance, the site will eventually also include resource page HTML files (e.g., Python resources and changes), but we'll ignore those components in this book.
Example 14-1. PP2EInternetCgi-WebPyErratapyerrata.html
PyErrata: PP2E Errata Page
PyErrata
The PP2E Updates Page
Version 1.0, November 1999
<a href="http://rmi.net/~lutz/about-pp.html">
You may both browse items, and submit new ones here. This site is primarily used for automatic, reader-controlled tracking of book corrections ("errata"); if you find a bug, please take a moment to fill out the errata submission form, so we can fix it in a later printing. Select a link below to submit or browse book-related items.
Submit
- <a href="submitErrata.html">Errata report</a>
- <a href="submitComment.html">General comment</a>
Browse
- <a href="browseErrata.html">Errata reports</a>
- <a href="browseComments.html">General comments</a>
Library
- <a href="resourceSupplements.html">Supplements</a>
- <a href="resourcePythonchanges.html">Python changes</a>
- <a href="resourcePatchfiles.html">Program patch files</a>
<a href="http://www.python.org">
Категории