src/build/html/pyams_utils.timezone.html
changeset 0 d153941bb745
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/build/html/pyams_utils.timezone.html	Sun Jan 14 11:48:51 2018 +0100
@@ -0,0 +1,199 @@
+
+<!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>pyams_utils.timezone package &#8212; PyAMS User Guide 0.1.0 documentation</title>
+    <link rel="stylesheet" href="_static/pyramid.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.0',
+        COLLAPSE_INDEX: false,
+        FILE_SUFFIX: '.html',
+        HAS_SOURCE:  true,
+        SOURCELINK_SUFFIX: '.txt'
+      };
+    </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>
+    <link rel="index" title="Index" href="genindex.html" />
+    <link rel="search" title="Search" href="search.html" />
+<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
+<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" />
+<!--[if lte IE 6]>
+<link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
+<![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">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
+      </ul>
+    </div>  
+
+    <div class="document">
+      <div class="documentwrapper">
+        <div class="bodywrapper">
+          <div class="body" role="main">
+            
+  <div class="section" id="pyams-utils-timezone-package">
+<h1>pyams_utils.timezone package<a class="headerlink" href="#pyams-utils-timezone-package" title="Permalink to this headline">¶</a></h1>
+<div class="section" id="module-pyams_utils.timezone">
+<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyams_utils.timezone" title="Permalink to this headline">¶</a></h2>
+<dl class="function">
+<dt id="pyams_utils.timezone.gmtime">
+<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>
+<dd><p>Convert datetime to GMT</p>
+<p>Value is assumed to be in GMT if no timezone is given</p>
+</dd></dl>
+
+<dl class="function">
+<dt id="pyams_utils.timezone.localgmtime">
+<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>
+<dd><p>Convert datetime to GMT</p>
+<p>Value is assumed to be in server timezone if none is given</p>
+</dd></dl>
+
+<dl class="function">
+<dt id="pyams_utils.timezone.tzinfo">
+<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>
+<dd><p>request to timezone adapter</p>
+<p>There is no easy way to get timezone from a request.
+This adapter assumes that the timezone is given by
+a registered utility…</p>
+</dd></dl>
+
+<dl class="function">
+<dt id="pyams_utils.timezone.tztime">
+<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>
+<dd><p>Convert datetime to local timezone</p>
+<table class="docutils field-list" frame="void" rules="none">
+<col class="field-name" />
+<col class="field-body" />
+<tbody valign="top">
+<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>value</strong> (<em>datetime</em>) – input datetime; value is assumed to be in GMT if no timezone is given</td>
+</tr>
+</tbody>
+</table>
+</dd></dl>
+
+</div>
+<div class="section" id="submodules">
+<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
+<div class="section" id="module-pyams_utils.timezone.utility">
+<span id="pyams-utils-timezone-utility-module"></span><h3>pyams_utils.timezone.utility module<a class="headerlink" href="#module-pyams_utils.timezone.utility" title="Permalink to this headline">¶</a></h3>
+<dl class="class">
+<dt id="pyams_utils.timezone.utility.ServerTimezoneUtility">
+<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>
+<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>
+<dl class="attribute">
+<dt id="pyams_utils.timezone.utility.ServerTimezoneUtility.timezone">
+<code class="descname">timezone</code><a class="headerlink" href="#pyams_utils.timezone.utility.ServerTimezoneUtility.timezone" title="Permalink to this definition">¶</a></dt>
+<dd><p>Server timezone: Default server timezone</p>
+</dd></dl>
+
+</dd></dl>
+
+<dl class="class">
+<dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker">
+<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>
+<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
+<p>Timezone generations checker</p>
+<dl class="method">
+<dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker.evolve">
+<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>
+<dd><p>Check for required utilities</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyams_utils.timezone.utility.TimezoneGenerationsChecker.generation">
+<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>
+<dd></dd></dl>
+
+</dd></dl>
+
+<dl class="function">
+<dt id="pyams_utils.timezone.utility.handle_new_local_site">
+<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>
+<dd><p>Create a new ServerTimezoneUtility when a site is created</p>
+</dd></dl>
+
+</div>
+<div class="section" id="module-pyams_utils.timezone.vocabulary">
+<span id="pyams-utils-timezone-vocabulary-module"></span><h3>pyams_utils.timezone.vocabulary module<a class="headerlink" href="#module-pyams_utils.timezone.vocabulary" title="Permalink to this headline">¶</a></h3>
+<dl class="class">
+<dt id="pyams_utils.timezone.vocabulary.TimezonesVocabulary">
+<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>
+<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.schema.vocabulary.SimpleVocabulary</span></code></p>
+<p>Timezones vocabulary</p>
+</dd></dl>
+
+</div>
+</div>
+</div>
+
+
+          </div>
+        </div>
+      </div>
+      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
+        <div class="sphinxsidebarwrapper">
+  <h3><a href="index.html">Table Of Contents</a></h3>
+  <ul>
+<li><a class="reference internal" href="#">pyams_utils.timezone package</a><ul>
+<li><a class="reference internal" href="#module-pyams_utils.timezone">Module contents</a></li>
+<li><a class="reference internal" href="#submodules">Submodules</a><ul>
+<li><a class="reference internal" href="#module-pyams_utils.timezone.utility">pyams_utils.timezone.utility module</a></li>
+<li><a class="reference internal" href="#module-pyams_utils.timezone.vocabulary">pyams_utils.timezone.vocabulary module</a></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+
+<div id="searchbox" style="display: none" role="search">
+  <h3>Quick search</h3>
+    <form class="search" action="search.html" method="get">
+      <div><input type="text" name="q" /></div>
+      <div><input type="submit" value="Go" /></div>
+      <input type="hidden" name="check_keywords" value="yes" />
+      <input type="hidden" name="area" value="default" />
+    </form>
+</div>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+        </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">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
+      </ul>
+    </div>
+    <div class="footer" role="contentinfo">
+        &#169; Copyright 2017, Thierry Florac.
+      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5.
+    </div>
+  </body>
+</html>
\ No newline at end of file