Ticket #4568: core-introduction-tutorial.xhtml.patch
| File core-introduction-tutorial.xhtml.patch, 5.3 KB (added by jdb, 3 years ago) |
|---|
-
doc/core/howto/design.xhtml
diff --git a/doc/core/howto/design.xhtml b/doc/core/howto/design.xhtml index 8d7d144..73e1505 100644
a b 89 89 created, and its <code class="python">connectionMade</code> method is called. 90 90 </p> 91 91 92 <p> The <code class="python">QOTDFactory</code>'s role is to specify to the 93 Twisted framework how to create a <code class="python">Protocol</code> instance 94 that will handle the connection. Twisted will not instantiate a <code 95 class="python">QOTDFactory</code>; you will do that yourself later, in a 96 <code class="shell">twistd</code> plug-in. 92 <p> The <code class="python">QOTDFactory</code>'s role is to specify 93 to the Twisted framework how to create 94 a <code class="python">Protocol</code> instance that will handle the 95 connection. Twisted will not instantiate 96 a <code class="python">QOTDFactory</code>; you will do that yourself 97 later, in a <code class="shell">twistd</code> plug-in. 97 98 </p> 98 99 99 <p>Note: you can read more specifics of <code class="python">Protocol</code> and 100 <code class="python">Factory</code> in the <a href="servers.xhtml">Writing 101 Servers</a> HOWTO.</p> 102 103 <p>Once we have an abstraction -- a <code>Quoter</code> -- and we have a 104 mechanism to connect it to the network -- the <code>QOTD</code> protocol -- the 105 next thing to do is to put the last link in the chain of functionality between 106 abstraction and user. This last link will allow a user to choose a 107 <code>Quoter</code> and configure the protocol. Writing this configuration is 108 covered in the <a href="application.xhtml">Application HOWTO</a>.</p> 100 <p>Note: you can read more specifics 101 of <code class="python">Protocol</code> 102 and <code class="python">Factory</code> in 103 the <a href="servers.xhtml">Writing Servers</a> HOWTO.</p> 104 105 <p>Once we have an abstraction -- a <code>Quoter</code> -- and we have 106 a mechanism to connect it to the network -- the <code>QOTD</code> 107 protocol -- the next thing to do is to put the last link in the chain 108 of functionality between abstraction and user. This last link will 109 allow a user to choose a <code>Quoter</code> and configure the 110 protocol. Writing this configuration is covered in 111 the <a href="application.xhtml">Application HOWTO</a>.</p> 109 112 110 113 </body> 111 114 -
doc/core/howto/internet-overview.xhtml
diff --git a/doc/core/howto/internet-overview.xhtml b/doc/core/howto/internet-overview.xhtml index 05a8766..46725e1 100644
a b 19 19 <p>Twisted Internet contains the various interfaces to the reactor 20 20 API, whose usage is documented in the low-level chapter. Those APIs 21 21 are <code class="API" base="twisted.internet.interfaces">IReactorCore</code>, 22 <code class="API" base="twisted.internet.interfaces">IReactorTCP</code>,23 <code class="API" base="twisted.internet.interfaces">IReactorSSL</code>,24 <code class="API" base="twisted.internet.interfaces">IReactorUNIX</code>,25 <code class="API" base="twisted.internet.interfaces">IReactorUDP</code>,26 <code class="API" base="twisted.internet.interfaces">IReactorTime</code>,27 <code class="API" base="twisted.internet.interfaces">IReactorProcess</code>,28 <code class="API" base="twisted.internet.interfaces">IReactorMulticast</code>22 <code class="API" base="twisted.internet.interfaces">IReactorTCP</code>, 23 <code class="API" base="twisted.internet.interfaces">IReactorSSL</code>, 24 <code class="API" base="twisted.internet.interfaces">IReactorUNIX</code>, 25 <code class="API" base="twisted.internet.interfaces">IReactorUDP</code>, 26 <code class="API" base="twisted.internet.interfaces">IReactorTime</code>, 27 <code class="API" base="twisted.internet.interfaces">IReactorProcess</code>, 28 <code class="API" base="twisted.internet.interfaces">IReactorMulticast</code> 29 29 and <code class="API" base="twisted.internet.interfaces">IReactorThreads</code>. 30 30 The reactor APIs allow non-persistent calls to be made.</p> 31 31 -
doc/core/howto/quotes.xhtml
diff --git a/doc/core/howto/quotes.xhtml b/doc/core/howto/quotes.xhtml index 4c7d1fd..735e88d 100644
a b 36 36 <li><a href="listings/TwistedQuotes/quoteproto.py" class="py-listing">quoteproto.py</a>;</li> 37 37 </ul> 38 38 </li> 39 <li>Add the <code>TwistedQuotes</code> directory's <em>parent</em> to your Python40 path. For example, if the TwistedQuotes directory's path is 41 <code>/tmp/TwistedQuotes</code> 42 add <code>/tmp</code> to your Python path. On UNIX this would be <code 43 class="shell">export PYTHONPATH=/my/stuff:$PYTHONPATH</code>, on Microsoft 44 Windows change the <code class="shell">PYTHONPATH</code> variable through the 45 SystemsProperites dialog to add <code class="shell">/my/stuff;</code> at the39 <li>Add the <code>TwistedQuotes</code> directory's <em>parent</em> to 40 your Python path. For example, if the TwistedQuotes directory's path 41 is <code>/tmp/TwistedQuotes</code> add <code>/tmp</code> to your 42 Python path. On UNIX this would be <code class="shell">export 43 PYTHONPATH=/my/stuff:$PYTHONPATH</code>, on Microsoft Windows change 44 the <code class="shell">PYTHONPATH</code> variable through the Systems 45 Properites dialog to add <code class="shell">/my/stuff;</code> at the 46 46 beginning.</li> 47 47 <li> 48 48 Test your package by trying to import it in the Python interpreter:
