docs/build/html/pyams_utils.timezone.html
changeset 78 54aeb42c0d80
equal deleted inserted replaced
77:13f3fb3fc4ef 78:54aeb42c0d80
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     2   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     3 
       
     4 
       
     5 <html xmlns="http://www.w3.org/1999/xhtml">
       
     6   <head>
       
     7     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
     8     
       
     9     <title>pyams_utils.timezone package &#8212; PyAMS_utils 0.1.4 documentation</title>
       
    10     
       
    11     <link rel="stylesheet" href="_static/pyramid.css" type="text/css" />
       
    12     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
       
    13     
       
    14     <script type="text/javascript">
       
    15       var DOCUMENTATION_OPTIONS = {
       
    16         URL_ROOT:    './',
       
    17         VERSION:     '0.1.4',
       
    18         COLLAPSE_INDEX: false,
       
    19         FILE_SUFFIX: '.html',
       
    20         HAS_SOURCE:  true
       
    21       };
       
    22     </script>
       
    23     <script type="text/javascript" src="_static/jquery.js"></script>
       
    24     <script type="text/javascript" src="_static/underscore.js"></script>
       
    25     <script type="text/javascript" src="_static/doctools.js"></script>
       
    26     <link rel="index" title="Index" href="genindex.html" />
       
    27     <link rel="search" title="Search" href="search.html" />
       
    28     <link rel="top" title="PyAMS_utils 0.1.4 documentation" href="index.html" />
       
    29 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    30 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    31 <!--[if lte IE 6]>
       
    32 <link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
       
    33 <![endif]-->
       
    34 
       
    35   </head>
       
    36   <body role="document">
       
    37 
       
    38     <div class="related" role="navigation" aria-label="related navigation">
       
    39       <h3>Navigation</h3>
       
    40       <ul>
       
    41         <li class="right" style="margin-right: 10px">
       
    42           <a href="genindex.html" title="General Index"
       
    43              accesskey="I">index</a></li>
       
    44         <li class="right" >
       
    45           <a href="py-modindex.html" title="Python Module Index"
       
    46              >modules</a> |</li>
       
    47         <li class="nav-item nav-item-0"><a href="index.html">PyAMS_utils 0.1.4 documentation</a> &#187;</li> 
       
    48       </ul>
       
    49     </div>  
       
    50 
       
    51     <div class="document">
       
    52       <div class="documentwrapper">
       
    53         <div class="bodywrapper">
       
    54           <div class="body" role="main">
       
    55             
       
    56   <div class="section" id="pyams-utils-timezone-package">
       
    57 <h1>pyams_utils.timezone package<a class="headerlink" href="#pyams-utils-timezone-package" title="Permalink to this headline">¶</a></h1>
       
    58 <div class="section" id="submodules">
       
    59 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
       
    60 </div>
       
    61 <div class="section" id="module-pyams_utils.timezone.utility">
       
    62 <span id="pyams-utils-timezone-utility-module"></span><h2>pyams_utils.timezone.utility module<a class="headerlink" href="#module-pyams_utils.timezone.utility" title="Permalink to this headline">¶</a></h2>
       
    63 <dl class="class">
       
    64 <dt id="pyams_utils.timezone.utility.ServerTimezoneUtility">
       
    65 <em class="property">class </em><code class="descclassname">pyams_utils.timezone.utility.</code><code class="descname">ServerTimezoneUtility</code><a class="headerlink" href="#pyams_utils.timezone.utility.ServerTimezoneUtility" title="Permalink to this definition">¶</a></dt>
       
    66 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">persistent.Persistent</span></code>, <code class="xref py py-class docutils literal"><span class="pre">zope.container.contained.Contained</span></code></p>
       
    67 <dl class="attribute">
       
    68 <dt id="pyams_utils.timezone.utility.ServerTimezoneUtility.timezone">
       
    69 <code class="descname">timezone</code><a class="headerlink" href="#pyams_utils.timezone.utility.ServerTimezoneUtility.timezone" title="Permalink to this definition">¶</a></dt>
       
    70 <dd><p>Default server timezone</p>
       
    71 </dd></dl>
       
    72 
       
    73 </dd></dl>
       
    74 
       
    75 <dl class="class">
       
    76 <dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker">
       
    77 <em class="property">class </em><code class="descclassname">pyams_utils.timezone.utility.</code><code class="descname">TimezoneGenerationsChecker</code><a class="headerlink" href="#pyams_utils.timezone.utility.TimezoneGenerationsChecker" title="Permalink to this definition">¶</a></dt>
       
    78 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
    79 <p>Timezone generations checker</p>
       
    80 <dl class="method">
       
    81 <dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker.evolve">
       
    82 <code class="descname">evolve</code><span class="sig-paren">(</span><em>site</em>, <em>current=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.utility.TimezoneGenerationsChecker.evolve" title="Permalink to this definition">¶</a></dt>
       
    83 <dd><p>Check for required utilities</p>
       
    84 </dd></dl>
       
    85 
       
    86 <dl class="attribute">
       
    87 <dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker.generation">
       
    88 <code class="descname">generation</code><em class="property"> = 1</em><a class="headerlink" href="#pyams_utils.timezone.utility.TimezoneGenerationsChecker.generation" title="Permalink to this definition">¶</a></dt>
       
    89 <dd></dd></dl>
       
    90 
       
    91 </dd></dl>
       
    92 
       
    93 <dl class="function">
       
    94 <dt id="pyams_utils.timezone.utility.handle_new_local_site">
       
    95 <code class="descclassname">pyams_utils.timezone.utility.</code><code class="descname">handle_new_local_site</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.utility.handle_new_local_site" title="Permalink to this definition">¶</a></dt>
       
    96 <dd><p>Create a new ServerTimezoneUtility when a site is created</p>
       
    97 </dd></dl>
       
    98 
       
    99 </div>
       
   100 <div class="section" id="module-pyams_utils.timezone.vocabulary">
       
   101 <span id="pyams-utils-timezone-vocabulary-module"></span><h2>pyams_utils.timezone.vocabulary module<a class="headerlink" href="#module-pyams_utils.timezone.vocabulary" title="Permalink to this headline">¶</a></h2>
       
   102 <dl class="class">
       
   103 <dt id="pyams_utils.timezone.vocabulary.TimezonesVocabulary">
       
   104 <em class="property">class </em><code class="descclassname">pyams_utils.timezone.vocabulary.</code><code class="descname">TimezonesVocabulary</code><span class="sig-paren">(</span><em>*args</em>, <em>**kw</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.vocabulary.TimezonesVocabulary" title="Permalink to this definition">¶</a></dt>
       
   105 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.schema.vocabulary.SimpleVocabulary</span></code></p>
       
   106 <p>Timezones vocabulary</p>
       
   107 </dd></dl>
       
   108 
       
   109 </div>
       
   110 <div class="section" id="module-pyams_utils.timezone">
       
   111 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyams_utils.timezone" title="Permalink to this headline">¶</a></h2>
       
   112 <dl class="function">
       
   113 <dt id="pyams_utils.timezone.gmtime">
       
   114 <code class="descclassname">pyams_utils.timezone.</code><code class="descname">gmtime</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.gmtime" title="Permalink to this definition">¶</a></dt>
       
   115 <dd><p>Convert datetime to GMT</p>
       
   116 <p>Value is assumed to be in GMT if no timezone is given</p>
       
   117 </dd></dl>
       
   118 
       
   119 <dl class="function">
       
   120 <dt id="pyams_utils.timezone.localgmtime">
       
   121 <code class="descclassname">pyams_utils.timezone.</code><code class="descname">localgmtime</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.localgmtime" title="Permalink to this definition">¶</a></dt>
       
   122 <dd><p>Convert datetime to GMT</p>
       
   123 <p>Value is assumed to be in server timezone if none is given</p>
       
   124 </dd></dl>
       
   125 
       
   126 <dl class="function">
       
   127 <dt id="pyams_utils.timezone.tzinfo">
       
   128 <code class="descclassname">pyams_utils.timezone.</code><code class="descname">tzinfo</code><span class="sig-paren">(</span><em>request=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.tzinfo" title="Permalink to this definition">¶</a></dt>
       
   129 <dd><p>request to timezone adapter</p>
       
   130 <p>There is no easy way to get timezone from a request.
       
   131 This adapter assumes that the timezone is given by
       
   132 a registered utility...</p>
       
   133 </dd></dl>
       
   134 
       
   135 <dl class="function">
       
   136 <dt id="pyams_utils.timezone.tztime">
       
   137 <code class="descclassname">pyams_utils.timezone.</code><code class="descname">tztime</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.timezone.tztime" title="Permalink to this definition">¶</a></dt>
       
   138 <dd><p>Convert datetime to local timezone</p>
       
   139 <table class="docutils field-list" frame="void" rules="none">
       
   140 <col class="field-name" />
       
   141 <col class="field-body" />
       
   142 <tbody valign="top">
       
   143 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>value</strong> (<em>datetime</em>) &#8211; input datetime; value is assumed to be in GMT if no timezone is given</td>
       
   144 </tr>
       
   145 </tbody>
       
   146 </table>
       
   147 </dd></dl>
       
   148 
       
   149 </div>
       
   150 </div>
       
   151 
       
   152 
       
   153           </div>
       
   154         </div>
       
   155       </div>
       
   156       <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
       
   157         <div class="sphinxsidebarwrapper">
       
   158   <h3><a href="index.html">Table Of Contents</a></h3>
       
   159   <ul>
       
   160 <li><a class="reference internal" href="#">pyams_utils.timezone package</a><ul>
       
   161 <li><a class="reference internal" href="#submodules">Submodules</a></li>
       
   162 <li><a class="reference internal" href="#module-pyams_utils.timezone.utility">pyams_utils.timezone.utility module</a></li>
       
   163 <li><a class="reference internal" href="#module-pyams_utils.timezone.vocabulary">pyams_utils.timezone.vocabulary module</a></li>
       
   164 <li><a class="reference internal" href="#module-pyams_utils.timezone">Module contents</a></li>
       
   165 </ul>
       
   166 </li>
       
   167 </ul>
       
   168 
       
   169 <div id="searchbox" style="display: none" role="search">
       
   170   <h3>Quick search</h3>
       
   171     <form class="search" action="search.html" method="get">
       
   172       <div><input type="text" name="q" /></div>
       
   173       <div><input type="submit" value="Go" /></div>
       
   174       <input type="hidden" name="check_keywords" value="yes" />
       
   175       <input type="hidden" name="area" value="default" />
       
   176     </form>
       
   177 </div>
       
   178 <script type="text/javascript">$('#searchbox').show(0);</script>
       
   179         </div>
       
   180       </div>
       
   181       <div class="clearer"></div>
       
   182     </div>
       
   183     <div class="related" role="navigation" aria-label="related navigation">
       
   184       <h3>Navigation</h3>
       
   185       <ul>
       
   186         <li class="right" style="margin-right: 10px">
       
   187           <a href="genindex.html" title="General Index"
       
   188              >index</a></li>
       
   189         <li class="right" >
       
   190           <a href="py-modindex.html" title="Python Module Index"
       
   191              >modules</a> |</li>
       
   192         <li class="nav-item nav-item-0"><a href="index.html">PyAMS_utils 0.1.4 documentation</a> &#187;</li> 
       
   193       </ul>
       
   194     </div>
       
   195     <div class="footer" role="contentinfo">
       
   196         &#169; Copyright 2016, Thierry Florac &lt;tflorac@ulthar.net&gt;.
       
   197       Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
       
   198     </div>
       
   199   </body>
       
   200 </html>