Sophie

Sophie

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

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.styles 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.styles.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.styles">
<span id="sqlobject-styles-module"></span><h1>sqlobject.styles module<a class="headerlink" href="#module-sqlobject.styles" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="sqlobject.styles.Style">
<em class="property">class </em><code class="descclassname">sqlobject.styles.</code><code class="descname">Style</code><span class="sig-paren">(</span><em>pythonAttrToDBColumn=None</em>, <em>dbColumnToPythonAttr=None</em>, <em>pythonClassToDBTable=None</em>, <em>dbTableToPythonClass=None</em>, <em>idForTable=None</em>, <em>longID=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style" 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>
<p>The base Style class, and also the simplest implementation.  No
translation occurs – column names and attribute names match,
as do class names and table names (when using auto class or
schema generation).</p>
<dl class="method">
<dt id="sqlobject.styles.Style.dbColumnToPythonAttr">
<code class="descname">dbColumnToPythonAttr</code><span class="sig-paren">(</span><em>col</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.dbColumnToPythonAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.dbColumnToPythonAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.dbTableToPythonClass">
<code class="descname">dbTableToPythonClass</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.dbTableToPythonClass"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.dbTableToPythonClass" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.idForTable">
<code class="descname">idForTable</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.idForTable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.idForTable" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.instanceAttrToIDAttr">
<code class="descname">instanceAttrToIDAttr</code><span class="sig-paren">(</span><em>attr</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.instanceAttrToIDAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.instanceAttrToIDAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.instanceIDAttrToAttr">
<code class="descname">instanceIDAttrToAttr</code><span class="sig-paren">(</span><em>attr</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.instanceIDAttrToAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.instanceIDAttrToAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.pythonAttrToDBColumn">
<code class="descname">pythonAttrToDBColumn</code><span class="sig-paren">(</span><em>attr</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.pythonAttrToDBColumn"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.pythonAttrToDBColumn" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.pythonClassToAttr">
<code class="descname">pythonClassToAttr</code><span class="sig-paren">(</span><em>className</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.pythonClassToAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.pythonClassToAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.pythonClassToDBTable">
<code class="descname">pythonClassToDBTable</code><span class="sig-paren">(</span><em>className</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.pythonClassToDBTable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.pythonClassToDBTable" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.Style.tableReference">
<code class="descname">tableReference</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#Style.tableReference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.Style.tableReference" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle">
<em class="property">class </em><code class="descclassname">sqlobject.styles.</code><code class="descname">MixedCaseUnderscoreStyle</code><span class="sig-paren">(</span><em>pythonAttrToDBColumn=None</em>, <em>dbColumnToPythonAttr=None</em>, <em>pythonClassToDBTable=None</em>, <em>dbTableToPythonClass=None</em>, <em>idForTable=None</em>, <em>longID=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#sqlobject.styles.Style" title="sqlobject.styles.Style"><code class="xref py py-class docutils literal notranslate"><span class="pre">sqlobject.styles.Style</span></code></a></p>
<p>This is the default style.  Python attributes use mixedCase,
while database columns use underscore_separated.</p>
<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.dbColumnToPythonAttr">
<code class="descname">dbColumnToPythonAttr</code><span class="sig-paren">(</span><em>col</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.dbColumnToPythonAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.dbColumnToPythonAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.dbTableToPythonClass">
<code class="descname">dbTableToPythonClass</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.dbTableToPythonClass"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.dbTableToPythonClass" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.pythonAttrToDBColumn">
<code class="descname">pythonAttrToDBColumn</code><span class="sig-paren">(</span><em>attr</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.pythonAttrToDBColumn"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.pythonAttrToDBColumn" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.pythonClassToDBTable">
<code class="descname">pythonClassToDBTable</code><span class="sig-paren">(</span><em>className</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.pythonClassToDBTable"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.pythonClassToDBTable" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.pythonClassToDBTableReference">
<code class="descname">pythonClassToDBTableReference</code><span class="sig-paren">(</span><em>className</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.pythonClassToDBTableReference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.pythonClassToDBTableReference" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseUnderscoreStyle.tableReference">
<code class="descname">tableReference</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseUnderscoreStyle.tableReference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseUnderscoreStyle.tableReference" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="attribute">
<dt id="sqlobject.styles.DefaultStyle">
<code class="descclassname">sqlobject.styles.</code><code class="descname">DefaultStyle</code><a class="headerlink" href="#sqlobject.styles.DefaultStyle" title="Permalink to this definition">¶</a></dt>
<dd><p>alias of <a class="reference internal" href="#sqlobject.styles.MixedCaseUnderscoreStyle" title="sqlobject.styles.MixedCaseUnderscoreStyle"><code class="xref py py-class docutils literal notranslate"><span class="pre">sqlobject.styles.MixedCaseUnderscoreStyle</span></code></a></p>
</dd></dl>

<dl class="class">
<dt id="sqlobject.styles.MixedCaseStyle">
<em class="property">class </em><code class="descclassname">sqlobject.styles.</code><code class="descname">MixedCaseStyle</code><span class="sig-paren">(</span><em>pythonAttrToDBColumn=None</em>, <em>dbColumnToPythonAttr=None</em>, <em>pythonClassToDBTable=None</em>, <em>dbTableToPythonClass=None</em>, <em>idForTable=None</em>, <em>longID=False</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseStyle"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseStyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#sqlobject.styles.Style" title="sqlobject.styles.Style"><code class="xref py py-class docutils literal notranslate"><span class="pre">sqlobject.styles.Style</span></code></a></p>
<p>This style leaves columns as mixed-case, and uses long
ID names (like ProductID instead of simply id).</p>
<dl class="method">
<dt id="sqlobject.styles.MixedCaseStyle.dbColumnToPythonAttr">
<code class="descname">dbColumnToPythonAttr</code><span class="sig-paren">(</span><em>col</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseStyle.dbColumnToPythonAttr"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseStyle.dbColumnToPythonAttr" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseStyle.dbTableToPythonClass">
<code class="descname">dbTableToPythonClass</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseStyle.dbTableToPythonClass"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseStyle.dbTableToPythonClass" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseStyle.pythonAttrToDBColumn">
<code class="descname">pythonAttrToDBColumn</code><span class="sig-paren">(</span><em>attr</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseStyle.pythonAttrToDBColumn"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseStyle.pythonAttrToDBColumn" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="sqlobject.styles.MixedCaseStyle.tableReference">
<code class="descname">tableReference</code><span class="sig-paren">(</span><em>table</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/sqlobject/styles.html#MixedCaseStyle.tableReference"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#sqlobject.styles.MixedCaseStyle.tableReference" title="Permalink to this definition">¶</a></dt>
<dd></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>