1
1
<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><title>Twisted Documentation: Setting up the TwistedQuotes application</title><link href="../howto/stylesheet.css" type="text/css" rel="stylesheet" /></head><body bgcolor="white"><h1 class="title">Setting up the TwistedQuotes application</h1><div class="toc"><ol><li><a href="#auto0">Goal</a></li><li><a href="#auto1">Setting up the TwistedQuotes project directory</a></li></ol></div><div class="content"><span></span><h2>Goal<a name="auto0"></a></h2><p>This document describes how to set up the TwistedQuotes application used in
4
and <a href="design.html">designing Twisted applications</a>.</p><h2>Setting up the TwistedQuotes project directory<a name="auto1"></a></h2><p>In order to run the Twisted Quotes example, you will need to do the
3
a number of other documents, such as <a href="design.html">designing Twisted applications</a>.</p><h2>Setting up the TwistedQuotes project directory<a name="auto1"></a></h2><p>In order to run the Twisted Quotes example, you will need to do the
5
4
following:</p><ol><li>Make a <code>TwistedQuotes</code> directory on your system</li><li>Place the following files in the <code>TwistedQuotes</code> directory:
6
5
<ul><li><a href="listings/TwistedQuotes/__init__.py">__init__.py</a> (this
7
6
file marks it as a package, see <a href="http://www.python.org/doc/current/tut/node8.html#SECTION008400000000000000000">this section</a> of the Python tutorial for more on packages);</li><li><a href="listings/TwistedQuotes/quoters.py">quoters.py</a>;</li><li><a href="listings/TwistedQuotes/quoteproto.py">quoteproto.py</a>; and</li><li><a href="listings/TwistedQuotes/plugins.tml">plugins.tml</a>.</li></ul></li><li>Add the <code>TwistedQuotes</code> directory's <em>parent</em> to your Python