doc/api/python/ido-pysrc.html
changeset 432 f2ddfa555b0f
equal deleted inserted replaced
431:7685cec9fd3c 432:f2ddfa555b0f
       
     1 <?xml version="1.0" encoding="ascii"?>
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3           "DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     5 <head>
       
     6   <title>ido</title>
       
     7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
       
     8   <script type="text/javascript" src="epydoc.js"></script>
       
     9 </head>
       
    10 
       
    11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
       
    12       alink="#204080">
       
    13 <!-- ==================== NAVIGATION BAR ==================== -->
       
    14 <table class="navbar" border="0" width="100%" cellpadding="0"
       
    15        bgcolor="#a0c0ff" cellspacing="0">
       
    16   <tr valign="middle">
       
    17 
       
    18   <!-- Tree link -->
       
    19       <th>&nbsp;&nbsp;&nbsp;<a
       
    20         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
    21 
       
    22   <!-- Index link -->
       
    23       <th>&nbsp;&nbsp;&nbsp;<a
       
    24         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
    25 
       
    26   <!-- Help link -->
       
    27       <th>&nbsp;&nbsp;&nbsp;<a
       
    28         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
    29 
       
    30       <th class="navbar" width="100%"></th>
       
    31   </tr>
       
    32 </table>
       
    33 <table width="100%" cellpadding="0" cellspacing="0">
       
    34   <tr valign="top">
       
    35     <td width="100%">
       
    36       <span class="breadcrumbs">
       
    37         Module&nbsp;ido
       
    38       </span>
       
    39     </td>
       
    40     <td>
       
    41       <table cellpadding="0" cellspacing="0">
       
    42         <!-- hide/show private -->
       
    43         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
       
    44     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
       
    45         <tr><td align="right"><span class="options"
       
    46             >[<a href="frames.html" target="_top">frames</a
       
    47             >]&nbsp;|&nbsp;<a href="ido-pysrc.html"
       
    48             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    49       </table>
       
    50     </td>
       
    51   </tr>
       
    52 </table>
       
    53 <h1 class="epydoc">Source Code for <a href="ido-module.html">Module ido</a></h1>
       
    54 <pre class="py-src">
       
    55 <a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#============================================================================ </tt> </tt>
       
    56 <a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Name        : ido.py </tt> </tt>
       
    57 <a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Part of     : Helium </tt> </tt>
       
    58 <a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
       
    59 <a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment">#Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).</tt> </tt>
       
    60 <a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#All rights reserved.</tt> </tt>
       
    61 <a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#This component and the accompanying materials are made available</tt> </tt>
       
    62 <a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#under the terms of the License "Eclipse Public License v1.0"</tt> </tt>
       
    63 <a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#which accompanies this distribution, and is available</tt> </tt>
       
    64 <a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#at the URL "http://www.eclipse.org/legal/epl-v10.html".</tt> </tt>
       
    65 <a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
       
    66 <a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Initial Contributors:</tt> </tt>
       
    67 <a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Nokia Corporation - initial contribution.</tt> </tt>
       
    68 <a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
       
    69 <a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Contributors:</tt> </tt>
       
    70 <a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
       
    71 <a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Description:</tt> </tt>
       
    72 <a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#===============================================================================</tt> </tt>
       
    73 <a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
       
    74 <a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
       
    75 <a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-docstring">IDO specific features</tt> </tt>
       
    76 <a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-docstring">    * find layer_real_source_path from sysdef file.</tt> </tt>
       
    77 <a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-docstring">    * time manipulation for robot releasing.</tt> </tt>
       
    78 <a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
       
    79 <a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
       
    80 <a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">datetime</tt> </tt>
       
    81 <a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"> </tt>
       
    82 <a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable ido.MATCH_ENTITY=ido-module.html#MATCH_ENTITY"><a title="ido.MATCH_ENTITY" class="py-name" href="#" onclick="return doclink('link-0', 'MATCH_ENTITY', 'link-0');">MATCH_ENTITY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">compile</tt><tt class="py-op">(</tt><tt class="py-string">r".*ENTITY\s+layer_real_source_path\s+\"(.+)\"\s*&gt;?.*"</tt><tt class="py-op">)</tt> </tt>
       
    83 <a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"> </tt>
       
    84 <a name="get_sysdef_location"></a><div id="get_sysdef_location-def"><a name="L30"></a><tt class="py-lineno">30</tt> <a class="py-toggle" href="#" id="get_sysdef_location-toggle" onclick="return toggle('get_sysdef_location');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ido-module.html#get_sysdef_location">get_sysdef_location</a><tt class="py-op">(</tt><tt class="py-param">sysdef</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
    85 </div><div id="get_sysdef_location-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_sysdef_location-expanded"><a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">    <tt class="py-docstring">""" Search for layer_real_source_path entity inside the sysdef file. """</tt> </tt>
       
    86 <a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">    <tt class="py-name">input</tt> <tt class="py-op">=</tt> <tt class="py-name">open</tt><tt class="py-op">(</tt><tt id="link-1" class="py-name" targets="Package sysdef=sysdef-module.html"><a title="sysdef" class="py-name" href="#" onclick="return doclink('link-1', 'sysdef', 'link-1');">sysdef</a></tt><tt class="py-op">,</tt> <tt class="py-string">'r'</tt><tt class="py-op">)</tt> </tt>
       
    87 <a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">line</tt> <tt class="py-keyword">in</tt> <tt class="py-name">input</tt><tt class="py-op">.</tt><tt class="py-name">readlines</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
    88 <a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name"><a title="ido.MATCH_ENTITY" class="py-name" href="#" onclick="return doclink('link-2', 'MATCH_ENTITY', 'link-0');">MATCH_ENTITY</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Method fileutils.AbstractScanner.match()=fileutils.AbstractScanner-class.html#match,Module pathaddition.match=pathaddition.match-module.html"><a title="fileutils.AbstractScanner.match
       
    89 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-3', 'match', 'link-3');">match</a></tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
    90 <a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">result</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
    91 <a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">            <tt class="py-name">input</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method build.model.BOM.close()=build.model.BOM-class.html#close,Method build.model.SessionCreator.close()=build.model.SessionCreator-class.html#close,Method buildtools.AbstractOutputWriter.close()=buildtools.AbstractOutputWriter-class.html#close,Method ccm.AbstractSession.close()=ccm.AbstractSession-class.html#close,Method ccm.Session.close()=ccm.Session-class.html#close,Method ccm.SessionPool.close()=ccm.SessionPool-class.html#close,Method ccm.extra.CachedSessionProvider.close()=ccm.extra.CachedSessionProvider-class.html#close,Method ccm.extra.SessionProvider.close()=ccm.extra.SessionProvider-class.html#close,Method log2xml.LogWriter.close()=log2xml.LogWriter-class.html#close,Method preparation.PreparationBuilder.close()=preparation.PreparationBuilder-class.html#close,Method sysdef.io.FlashImageSizeWriter.close()=sysdef.io.FlashImageSizeWriter-class.html#close"><a title="build.model.BOM.close
       
    92 build.model.SessionCreator.close
       
    93 buildtools.AbstractOutputWriter.close
       
    94 ccm.AbstractSession.close
       
    95 ccm.Session.close
       
    96 ccm.SessionPool.close
       
    97 ccm.extra.CachedSessionProvider.close
       
    98 ccm.extra.SessionProvider.close
       
    99 log2xml.LogWriter.close
       
   100 preparation.PreparationBuilder.close
       
   101 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-4', 'close', 'link-4');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   102 <a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">result</tt><tt class="py-op">.</tt><tt class="py-name">groups</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
       
   103 <a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">    <tt class="py-name">input</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="build.model.BOM.close
       
   104 build.model.SessionCreator.close
       
   105 buildtools.AbstractOutputWriter.close
       
   106 ccm.AbstractSession.close
       
   107 ccm.Session.close
       
   108 ccm.SessionPool.close
       
   109 ccm.extra.CachedSessionProvider.close
       
   110 ccm.extra.SessionProvider.close
       
   111 log2xml.LogWriter.close
       
   112 preparation.PreparationBuilder.close
       
   113 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-5', 'close', 'link-4');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   114 <a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
       
   115 </div><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"> </tt>
       
   116 <a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"> </tt>
       
   117 <a name="get_first_day_of_cycle"></a><div id="get_first_day_of_cycle-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="get_first_day_of_cycle-toggle" onclick="return toggle('get_first_day_of_cycle');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ido-module.html#get_first_day_of_cycle">get_first_day_of_cycle</a><tt class="py-op">(</tt><tt class="py-param">now</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">now</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   118 </div><div id="get_first_day_of_cycle-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_first_day_of_cycle-expanded"><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">    <tt class="py-docstring">""" This function returns a datetime object representing the monday from closest</tt> </tt>
       
   119 <a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"><tt class="py-docstring">        even week.</tt> </tt>
       
   120 <a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
       
   121 <a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">    <tt class="py-name">week</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">now</tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">"%W"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
       
   122 <a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">    <tt class="py-name">day</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">now</tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">"%w"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-number">1</tt> </tt>
       
   123 <a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">    <tt class="py-name">monday</tt> <tt class="py-op">=</tt> <tt class="py-name">now</tt> <tt class="py-op">-</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">timedelta</tt><tt class="py-op">(</tt><tt class="py-name">days</tt><tt class="py-op">=</tt><tt class="py-name">day</tt> <tt class="py-op">+</tt> <tt class="py-name">week</tt><tt class="py-op">.</tt><tt class="py-name">__mod__</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> <tt class="py-op">*</tt> <tt class="py-number">7</tt><tt class="py-op">)</tt> </tt>
       
   124 <a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line">    <tt class="py-name">monday</tt> <tt class="py-op">=</tt> <tt class="py-name">monday</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-name">hour</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">minute</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">second</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">microsecond</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
       
   125 <a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">monday</tt> </tt>
       
   126 </div><a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"> </tt>
       
   127 <a name="get_absolute_date"></a><div id="get_absolute_date-def"><a name="L52"></a><tt class="py-lineno">52</tt> <a class="py-toggle" href="#" id="get_absolute_date-toggle" onclick="return toggle('get_absolute_date');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ido-module.html#get_absolute_date">get_absolute_date</a><tt class="py-op">(</tt><tt class="py-param">day</tt><tt class="py-op">,</tt> <tt class="py-param">time</tt><tt class="py-op">,</tt> <tt class="py-param">now</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">now</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   128 </div><div id="get_absolute_date-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_absolute_date-expanded"><a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">    <tt class="py-docstring">""" Get the absolute date from the day and time. """</tt> </tt>
       
   129 <a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">    <tt class="py-name">time</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">strptime</tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">,</tt> <tt class="py-string">"%H:%M"</tt><tt class="py-op">)</tt> </tt>
       
   130 <a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line">    <tt class="py-name">delta</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">timedelta</tt><tt class="py-op">(</tt><tt class="py-name">days</tt> <tt class="py-op">=</tt> <tt class="py-name">day</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-name">hours</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">hour</tt><tt class="py-op">,</tt> <tt class="py-name">minutes</tt><tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">minute</tt><tt class="py-op">)</tt> </tt>
       
   131 <a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-6" class="py-name" targets="Function ido.get_first_day_of_cycle()=ido-module.html#get_first_day_of_cycle"><a title="ido.get_first_day_of_cycle" class="py-name" href="#" onclick="return doclink('link-6', 'get_first_day_of_cycle', 'link-6');">get_first_day_of_cycle</a></tt><tt class="py-op">(</tt><tt class="py-name">now</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">delta</tt> </tt>
       
   132 </div><a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"> </tt>
       
   133 <a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line"> </tt>
       
   134 <a name="is_in_interval"></a><div id="is_in_interval-def"><a name="L59"></a><tt class="py-lineno">59</tt> <a class="py-toggle" href="#" id="is_in_interval-toggle" onclick="return toggle('is_in_interval');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ido-module.html#is_in_interval">is_in_interval</a><tt class="py-op">(</tt><tt class="py-param">day1</tt><tt class="py-op">,</tt> <tt class="py-param">time1</tt><tt class="py-op">,</tt> <tt class="py-param">day2</tt><tt class="py-op">,</tt> <tt class="py-param">time2</tt><tt class="py-op">,</tt> <tt class="py-param">now</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">now</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   135 </div><div id="is_in_interval-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="is_in_interval-expanded"><a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">    <tt class="py-docstring">""" Return True is get_absolute_date(day1, time1) &lt; now &lt; get_absolute_date(day2, time2). """</tt> </tt>
       
   136 <a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">    <tt class="py-name">delta1</tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name" targets="Function ido.get_absolute_date()=ido-module.html#get_absolute_date"><a title="ido.get_absolute_date" class="py-name" href="#" onclick="return doclink('link-7', 'get_absolute_date', 'link-7');">get_absolute_date</a></tt><tt class="py-op">(</tt><tt class="py-name">day1</tt><tt class="py-op">,</tt> <tt class="py-name">time1</tt><tt class="py-op">,</tt> <tt class="py-name">now</tt><tt class="py-op">)</tt> </tt>
       
   137 <a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line">    <tt class="py-name">delta2</tt> <tt class="py-op">=</tt> <tt id="link-8" class="py-name"><a title="ido.get_absolute_date" class="py-name" href="#" onclick="return doclink('link-8', 'get_absolute_date', 'link-7');">get_absolute_date</a></tt><tt class="py-op">(</tt><tt class="py-name">day2</tt><tt class="py-op">,</tt> <tt class="py-name">time2</tt><tt class="py-op">,</tt> <tt class="py-name">now</tt><tt class="py-op">)</tt> </tt>
       
   138 <a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">now</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">delta1</tt><tt class="py-op">:</tt> </tt>
       
   139 <a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
       
   140 <a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">delta2</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">now</tt><tt class="py-op">:</tt> </tt>
       
   141 <a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
       
   142 <a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
       
   143 </div><a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"> </tt><script type="text/javascript">
       
   144 <!--
       
   145 expandto(location.href);
       
   146 // -->
       
   147 </script>
       
   148 </pre>
       
   149 <br />
       
   150 <!-- ==================== NAVIGATION BAR ==================== -->
       
   151 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   152        bgcolor="#a0c0ff" cellspacing="0">
       
   153   <tr valign="middle">
       
   154 
       
   155   <!-- Tree link -->
       
   156       <th>&nbsp;&nbsp;&nbsp;<a
       
   157         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   158 
       
   159   <!-- Index link -->
       
   160       <th>&nbsp;&nbsp;&nbsp;<a
       
   161         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   162 
       
   163   <!-- Help link -->
       
   164       <th>&nbsp;&nbsp;&nbsp;<a
       
   165         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   166 
       
   167       <th class="navbar" width="100%"></th>
       
   168   </tr>
       
   169 </table>
       
   170 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   171   <tr>
       
   172     <td align="left" class="footer">
       
   173     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:23 2009
       
   174     </td>
       
   175     <td align="right" class="footer">
       
   176       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   177     </td>
       
   178   </tr>
       
   179 </table>
       
   180 
       
   181 <script type="text/javascript">
       
   182   <!--
       
   183   // Private objects are initially displayed (because if
       
   184   // javascript is turned off then we want them to be
       
   185   // visible); but by default, we want to hide them.  So hide
       
   186   // them unless we have a cookie that says to show them.
       
   187   checkCookie()
       
   188   // -->
       
   189 </script>
       
   190   
       
   191 </body>
       
   192 </html>