Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > f1af5ac4c8d0f3f6ef0bca84cf516f3e > files > 1150

python3-sqlobject-3.7.0-1.mga7.noarch.rpm



<!doctype html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>sqlobject.wsgi_middleware module &#8212; SQLObject 3.7.0 documentation</title>
    <link rel="stylesheet" href="../_static/bizstyle.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript" src="../_static/documentation_options.js"></script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/bizstyle.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!--[if lt IE 9]>
    <script type="text/javascript" src="_static/css3-mediaqueries.js"></script>
    <![endif]-->
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <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="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SQLObject 3.7.0 documentation</a> &#187;</li> 
      </ul>
    </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/api/sqlobject.wsgi_middleware.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="module-sqlobject.wsgi_middleware">
<span id="sqlobject-wsgi-middleware-module"></span><h1>sqlobject.wsgi_middleware module<a class="headerlink" href="#module-sqlobject.wsgi_middleware" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="sqlobject.wsgi_middleware.SQLObjectMiddleware">
<em class="property">class </em><code class="descclassname">sqlobject.wsgi_middleware.</code><code class="descname">SQLObjectMiddleware</code><span class="sig-paren">(</span><em>app</em>, <em>conn</em>, <em>use_transaction</em>, <em>hub</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/wsgi_middleware.html#SQLObjectMiddleware"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.wsgi_middleware.SQLObjectMiddleware" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
</dd></dl>

<dl class="function">
<dt id="sqlobject.wsgi_middleware.make_middleware">
<code class="descclassname">sqlobject.wsgi_middleware.</code><code class="descname">make_middleware</code><span class="sig-paren">(</span><em>app</em>, <em>global_conf</em>, <em>database=None</em>, <em>use_transaction=False</em>, <em>hub=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/wsgi_middleware.html#make_middleware"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.wsgi_middleware.make_middleware" title="Permalink to this definition">¶</a></dt>
<dd><p>WSGI middleware that sets the connection for the request (using
the database URI or connection object) and the given hub (or
<code class="docutils literal notranslate"><span class="pre">sqlobject.sqlhub</span></code> if not given).</p>
<p>If <code class="docutils literal notranslate"><span class="pre">use_transaction</span></code> is true, then the request will be run in a
transaction.</p>
<p>Applications can use the keys (which are all no-argument functions):</p>
<dl class="docutils">
<dt><code class="docutils literal notranslate"><span class="pre">sqlobject.get_connection()</span></code>:</dt>
<dd>Returns the connection object</dd>
<dt><code class="docutils literal notranslate"><span class="pre">sqlobject.abort()</span></code>:</dt>
<dd>Aborts the transaction.  Does not raise an error, but at the <em>end</em>
of the request there will be a rollback.</dd>
<dt><code class="docutils literal notranslate"><span class="pre">sqlobject.begin()</span></code>:</dt>
<dd>Starts a transaction.  First commits (or rolls back if aborted) if
this is run in a transaction.</dd>
<dt><code class="docutils literal notranslate"><span class="pre">sqlobject.in_transaction()</span></code>:</dt>
<dd>Returns true or false, depending if we are currently in a
transaction.</dd>
</dl>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <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="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SQLObject 3.7.0 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2004-2018, Ian Bicking and contributors.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.4.
    </div>
  </body>
</html>