1.1 --- a/docs/design.html Thu Aug 25 21:44:47 2005 +0000
1.2 +++ b/docs/design.html Thu Aug 25 21:45:47 2005 +0000
1.3 @@ -1,12 +1,10 @@
1.4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.5 -<html xmlns="http://www.w3.org/1999/xhtml">
1.6 -<head>
1.7 +<html xmlns="http://www.w3.org/1999/xhtml"><head>
1.8 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
1.9 - <title>Application Design Considerations</title>
1.10 - <meta name="generator"
1.11 - content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.12 - <link href="styles.css" rel="stylesheet" type="text/css" />
1.13 -</head>
1.14 +
1.15 + <title>Application Design Considerations</title><meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.16 + <link href="styles.css" rel="stylesheet" type="text/css" /></head>
1.17 +
1.18 <body>
1.19 <h1>Application Design Considerations</h1>
1.20 <p>When writing an application, we
1.21 @@ -26,22 +24,21 @@
1.22 transaction object effectively tells us what it is the user wants to
1.23 do; it does so through a number of different pieces of information
1.24 including the request method, headers, parameters, cookies and sessions.</p>
1.25 -<div class="WebStack">
1.26 -<h3>WebStack API - The Transaction Object</h3>
1.27 <p>The transaction object appears as the first parameter in a
1.28 resource's <code>respond</code> method:</p>
1.29 -<pre>class SomeResource:<br /> def respond(self, trans):<br /> [Here is where the code for the resource is written.]</pre>
1.30 -<p>For full information about transaction objects, see the API
1.31 -documentation for the <a
1.32 - href="../apidocs/public/WebStack.Generic.Transaction-class.html"><code>WebStack.Generic.Transaction</code></a>
1.33 -class.</p>
1.34 -</div>
1.35 +
1.36 +<pre>class MyResource:<br /> def respond(self, trans):<br /> [Here is where the code for the resource is written.]</pre>
1.37 +
1.38 <p>Within this activity, certain topics are of interest:</p>
1.39 <ul>
1.40 <li><a href="paths.html">URLs and Paths</a></li>
1.41 <li><a href="methods.html">Request Methods</a></li>
1.42 <li><a href="parameters.html">Request Parameters and Uploads</a></li>
1.43 </ul>
1.44 +<p>For full information about transaction objects, see the API
1.45 +documentation for the <a href="../apidocs/public/WebStack.Generic.Transaction-class.html"><code>WebStack.Generic.Transaction</code></a>
1.46 +class.</p>
1.47 +
1.48 <h2>Perform Actions</h2>
1.49 <p>Of all activities summarised above, this is the most vague because
1.50 the kinds of actions performed by applications will vary substantially
1.51 @@ -63,5 +60,4 @@
1.52 <li><a href="state.html">Cookies, Sessions, Users and Persistent
1.53 Information</a></li>
1.54 </ul>
1.55 -</body>
1.56 -</html>
1.57 +</body></html>
1.58 \ No newline at end of file