Source

JythonBook / html / index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The Definitive Guide to Jython with Django &mdash; Jython Book v0.1 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Jython Book v0.1 documentation" href="" />
    <link rel="next" title="Chapter 1: Language and Syntax" href="chapter1.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="chapter1.html" title="Chapter 1: Language and Syntax"
             accesskey="N">next</a> |</li>
        <li><a href="">Jython Book v0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="the-definitive-guide-to-jython-with-django">
<h1>The Definitive Guide to Jython with Django<a class="headerlink" href="#the-definitive-guide-to-jython-with-django" title="Permalink to this headline"></a></h1>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Authors:</th><td class="field-body">Josh Juneau,
Jim Baker,
Victor Ng,
Leo Soto,
Frank Wierzbicki</td>
</tr>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">0.2 of 07/01/2009</td>
</tr>
</tbody>
</table>
<p>This book is presented in open source and licensed through Creative Commons 3.0.
You are free to copy, distribute, transmit, and/or adapt the work.  This license
is based upon the following conditions:</p>
<p>Attribution:</p>
<p>You must attribute the work in the manner specified by the author
or licensor (but not in any way that suggests that they endorse
you or your use of the work).</p>
<p>Share Alike:</p>
<p>If you alter, transform, or build upon this work, you may distribute the
resulting work only under the same, similar or a compatible license.</p>
<p>Any of the above conditions can be waived if you get permission from
the copyright holder.</p>
<p>In no way are any of the following rights affected by the license:</p>
<blockquote>
<ul class="simple">
<li>Your fair desling or fair use rights</li>
<li>The author&#8217;s moral rights</li>
<li>Rights other persons may have either in the work itself or in how
the work is used, such as publicity or privacy rights</li>
</ul>
</blockquote>
<p>Notice:  For any reuse or distribution, you must make clear to the others
the license terms of this work.  The best way to do this is with a direct
link to this page:  <a class="reference external" href="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</a></p>
<p>To be printed by Apress Fall 2009 &#8211;
&lt;<a class="reference external" href="http://www.apress.com/book/view/9781430225270">http://www.apress.com/book/view/9781430225270</a>&gt;</p>
<blockquote>
<p>ISBN10: 1-4302-2527-0</p>
<p>ISBN13: 978-1-4302-2527-0</p>
</blockquote>
<p>Source code will be available at: <a class="reference external" href="http://www.apress.com">http://www.apress.com</a></p>
<ul class="simple">
</ul>
</div>
<div class="section" id="part-i-jython-basics-learning-the-language">
<h1>Part I:  Jython Basics:  Learning the Language<a class="headerlink" href="#part-i-jython-basics-learning-the-language" title="Permalink to this headline"></a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="chapter1.html">Chapter 1: Language and Syntax</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#the-difference-between-jython-and-python">The Difference Between Jython and Python</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#installing-and-configuring-jython">Installing and Configuring Jython</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#identifiers-and-declaring-variables">Identifiers and Declaring Variables</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#reserved-words">Reserved Words</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#iteration">Iteration</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#documenting-code">Documenting Code</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#python-help">Python Help</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter1.html#summary">Summary</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter2.html">Chapter 2: Data Types and Referencing</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter2.html#python-data-types">Python Data Types</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter2.html#referencing-and-copies">Referencing and Copies</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter2.html#garbage-collection">Garbage Collection</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter2.html#summary">Summary</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter3.html">Chapter 3: Operators, Expressions, and Program Flow</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#types-of-expressions">Types of Expressions</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#mathematical-operations">Mathematical Operations</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#boolean-expressions">Boolean Expressions</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#conversions">Conversions</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#program-flow">Program Flow</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#example-code">Example Code</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter3.html#summary">Summary</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter5.html">Chapter 5: Exception Handling and Debugging</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#exception-handling-syntax-and-differences-with-java">Exception Handling Syntax and Differences with Java</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#defining-your-own-exceptions">Defining Your Own Exceptions</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#issuing-warnings">Issuing Warnings</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#assertions-and-debugging">Assertions and Debugging</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#context-managers">Context Managers</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter5.html#summary">Summary</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter6.html">Chapter 6:  Object Oriented Jython</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#basic-syntax">Basic Syntax</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#object-attribute-lookups">Object Attribute Lookups</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#inheritance-and-overloading">Inheritance and Overloading</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#more-advanced-abstraction">More advanced abstraction</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#protocols">Protocols</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#an-aside-a-common-problem-that-everyone-seems-to-have">An aside a common problem that everyone seems to have</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#runtime-binding-of-methods">Runtime binding of methods</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#closures-and-passing-objects">Closures and Passing Objects</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter6.html#review-and-a-taste-of-how-we-could-fit-all-of-this-together">Review - and a taste of how we could fit all of this together</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter7.html">Chapter 7: Modules and Packages</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#imports-for-re-use">Imports For Re-Use</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#types-of-import-statements">Types of import statements</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#module-search-path-compilation-and-loading">Module Search Path, Compilation, and Loading</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#java-package-scanning">Java Package Scanning</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#python-modules-and-packages-vs-java-packages">Python Modules and Packages vs. Java Packages</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter7.html#conclusion">Conclusion</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="part-ii-using-the-language">
<h1>Part II: Using the Language<a class="headerlink" href="#part-ii-using-the-language" title="Permalink to this headline"></a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="chapter8.html">Chapter 8:  Scripting with Jython</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter9.html">Chapter 9:  Input and Output</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter10.html">CHAPTER 10: Jython and Java Integration</a><ul>
<li class="toctree-l2"><a class="reference external" href="chapter10.html#using-jython-within-java-applications">Using Jython within Java Applications</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter10.html#using-java-within-jython-applications">Using Java within Jython Applications</a></li>
<li class="toctree-l2"><a class="reference external" href="chapter10.html#conclusion">Conclusion</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="chapter11.html">Chapter 11:  Using Jython in an IDE</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter12.html">Chapter 12:  Databases and Jython</a></li>
</ul>
</div>
<div class="section" id="part-iii-developing-applications-with-jython">
<h1>Part III: Developing Applications with Jython<a class="headerlink" href="#part-iii-developing-applications-with-jython" title="Permalink to this headline"></a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="chapter13.html">Chapter 13:  Simple Web Applications</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter14.html">Chapter 14:  Web Applications with Django</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter15.html">Chapter 15:  Web Applications with Pylons</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter16.html">Chapter 16:  Web Services and SOA</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter17.html">Chapter 17:  GUI Applications</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter18.html">Chapter 18:  Development Targets</a></li>
</ul>
</div>
<div class="section" id="part-iv-strategy-and-technique">
<h1>Part IV:  Strategy and Technique<a class="headerlink" href="#part-iv-strategy-and-technique" title="Permalink to this headline"></a></h1>
<ul>
<li class="toctree-l1"><a class="reference external" href="chapter19.html">Chapter 19:  Testing and Continuous Integration</a></li>
<li class="toctree-l1"><a class="reference external" href="chapter20.html">Chapter 20:  Concurrency and Parallelism</a></li>
</ul>
</div>
<div class="section" id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li><a class="reference external" href="genindex.html"><em>Index</em></a></li>
<li><a class="reference external" href="modindex.html"><em>Module Index</em></a></li>
<li><a class="reference external" href="search.html"><em>Search Page</em></a></li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="">The Definitive Guide to Jython with Django</a><ul>
</ul>
</li>
<li><a class="reference external" href="#part-i-jython-basics-learning-the-language">Part I:  Jython Basics:  Learning the Language</a><ul>
</ul>
</li>
<li><a class="reference external" href="#part-ii-using-the-language">Part II: Using the Language</a><ul>
</ul>
</li>
<li><a class="reference external" href="#part-iii-developing-applications-with-jython">Part III: Developing Applications with Jython</a><ul>
</ul>
</li>
<li><a class="reference external" href="#part-iv-strategy-and-technique">Part IV:  Strategy and Technique</a><ul>
</ul>
</li>
<li><a class="reference external" href="#indices-and-tables">Indices and tables</a></li>
</ul>

            <h4>Next topic</h4>
            <p class="topless"><a href="chapter1.html"
                                  title="next chapter">Chapter 1: Language and Syntax</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/index.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="chapter1.html" title="Chapter 1: Language and Syntax"
             >next</a> |</li>
        <li><a href="">Jython Book v0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2009, Josh Juneau, Frank Wierzbicki, Jim Baker, Leo Soto, ViVictor Ng.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
    </div>
  </body>
</html>