Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-updates > by-pkgid > c7d449e3ce8e1e2c406150712aeaba46 > files > 342

python-paste-1.7.5.1-3mdv2010.2.noarch.rpm

<!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 Future Of Paste &mdash; Paste v1.7.5.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:     '1.7.5.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="Paste v1.7.5.1 documentation" href="index.html" />
    <link rel="next" title="Testing Applications with Paste" href="testing-applications.html" />
    <link rel="prev" title="News" href="news.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="testing-applications.html" title="Testing Applications with Paste"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="news.html" title="News"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">Paste v1.7.5.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="the-future-of-paste">
<h1>The Future Of Paste<a class="headerlink" href="#the-future-of-paste" title="Permalink to this headline">¶</a></h1>
<div class="section" id="introduction">
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
<p>Paste has been under development for a while, and has lots of code in it.  Too much code!  The code is largely decoupled except for some core functions shared by many parts of the code.  Those core functions are largely replaced in <a class="reference external" href="http://pythonpaste.org/webob/">WebOb</a>, and replaced with better implementations.</p>
<p>The future of these pieces is to split them into independent packages, and refactor the internal Paste dependencies to rely instead on WebOb.</p>
</div>
<div class="section" id="already-extracted">
<h2>Already Extracted<a class="headerlink" href="#already-extracted" title="Permalink to this headline">¶</a></h2>
<dl class="docutils">
<dt>paste.fixture:</dt>
<dd>WebTest
ScriptTest</dd>
<dt>paste.lint:</dt>
<dd>wsgiref.validate</dd>
<dt>paste.exceptions and paste.evalexception:</dt>
<dd>WebError</dd>
<dt>paste.util.template:</dt>
<dd>Tempita</dd>
</dl>
</div>
<div class="section" id="to-be-separated">
<h2>To Be Separated<a class="headerlink" href="#to-be-separated" title="Permalink to this headline">¶</a></h2>
<dl class="docutils">
<dt>paste.httpserver and paste.debug.watchthreads:</dt>
<dd>Not sure what to call this.</dd>
<dt>paste.cascade and paste.errordocuments:</dt>
<dd>Not sure; Ben has an implementation of errordocuments in <tt class="docutils literal"><span class="pre">pylons.middleware.StatusCodeRedirect</span></tt></dd>
<dt>paste.urlmap, paste.deploy.config.PrefixMiddleware:</dt>
<dd>In... some routing thing?  Together with the previous package?</dd>
<dt>paste.proxy:</dt>
<dd>WSGIProxy (needs lots of cleanup though)</dd>
<dt>paste.fileapp, paste.urlparser.StaticURLParser, paste.urlparser.PkgResourcesParser:</dt>
<dd>In some new file-serving package.</dd>
<dt>paste.cgiapp, wphp.fcgi_app:</dt>
<dd>Some proxyish app... maybe WSGIProxy?</dd>
<dt>paste.translogger, paste.debug.prints, paste.util.threadedprint, wsgifilter.proxyapp.DebugHeaders:</dt>
<dd>Some... other place.  Something loggy.</dd>
<dt>paste.registry, paste.config:</dt>
<dd>Not sure.  Alberto Valverde expressed interest in splitting out paste.registry.</dd>
<dt>paste.cgitb_catcher:</dt>
<dd>Move to WebError?  Not sure if it matters.  For some reason people use this, though.</dd>
</dl>
</div>
<div class="section" id="to-deprecate">
<h2>To Deprecate<a class="headerlink" href="#to-deprecate" title="Permalink to this headline">¶</a></h2>
<p>(In that, I won&#8217;t extract these anywhere; I&#8217;m not going to do any big deletes anytime soon, though)</p>
<dl class="docutils">
<dt>paste.recursive</dt>
<dd>Better to do it manually (with webob.Request.get_response)</dd>
<dt>paste.wsgiwrappers, paste.request, paste.response, paste.wsgilib, paste.httpheaders, paste.httpexceptions:</dt>
<dd>All the functionality is already in WebOb.</dd>
<dt>paste.urlparser.URLParser:</dt>
<dd>Really this is tied to paste.webkit more than anything.</dd>
<dt>paste.auth.*:</dt>
<dd>Well, these all need to be refactored, and replacements exist in AuthKit and repoze.who.  Some pieces might still have utility.</dd>
<dt>paste.debug.profile:</dt>
<dd>I think repoze.profile supersedes this.</dd>
<dt>paste.debug.wdg_validator:</dt>
<dd>It could get reimplemented with more options for validators, but I&#8217;m not really that interested at the moment.  The code is nothing fancy.</dd>
<dt>paste.transaction:</dt>
<dd>More general in repoze.tm</dd>
<dt>paste.url:</dt>
<dd>No one uses this</dd>
</dl>
</div>
<div class="section" id="undecided">
<h2>Undecided<a class="headerlink" href="#undecided" title="Permalink to this headline">¶</a></h2>
<dl class="docutils">
<dt>paste.debug.fsdiff:</dt>
<dd>Maybe ScriptTest?</dd>
<dt>paste.session:</dt>
<dd>It&#8217;s an okay naive session system.  But maybe Beaker makes it irrelevant (Beaker does seem slightly more complex to setup).  But then, this can just live here indefinitely.</dd>
<dt>paste.gzipper:</dt>
<dd>I&#8217;m a little uncomfortable with this in concept.  It&#8217;s largely in WebOb right now, but not as middleware.</dd>
<dt>paste.reloader:</dt>
<dd>Maybe this should be moved to paste.script (i.e., paster serve)</dd>
<dt>paste.debug.debugapp, paste.script.testapp:</dt>
<dd>Alongside other debugging tools, I guess</dd>
<dt>paste.progress:</dt>
<dd>Not sure this works.</dd>
</dl>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="#">The Future Of Paste</a><ul>
<li><a class="reference external" href="#introduction">Introduction</a></li>
<li><a class="reference external" href="#already-extracted">Already Extracted</a></li>
<li><a class="reference external" href="#to-be-separated">To Be Separated</a></li>
<li><a class="reference external" href="#to-deprecate">To Deprecate</a></li>
<li><a class="reference external" href="#undecided">Undecided</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="news.html"
                                  title="previous chapter">News</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="testing-applications.html"
                                  title="next chapter">Testing Applications with Paste</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/future.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="testing-applications.html" title="Testing Applications with Paste"
             >next</a> |</li>
        <li class="right" >
          <a href="news.html" title="News"
             >previous</a> |</li>
        <li><a href="index.html">Paste v1.7.5.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2008, Ian Bicking.
      Last updated on Mar 31, 2011.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.5.
    </div>
  </body>
</html>