doc/doxygen/html/DS301__index_8py-source.html
author lbessard
Tue, 05 Jun 2007 17:34:33 +0200
changeset 209 2cb34a4ac65a
parent 207 b6572d0336c3
permissions -rw-r--r--
Bug on RefreshStatusBar corrected
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/objdictgen/doc_index/DS301_index.py Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>/home/epimerde/documents/tc11/CanFestival-3/objdictgen/doc_index/DS301_index.py</h1><a href="DS301__index_8py.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespacedoc__index_1_1DS301__index.html">00001</a> <span class="comment">#!/usr/bin/env python</span>
<a name="l00002"></a>00002 <span class="comment"># -*- coding: utf-8 -*-</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="keyword">import</span> os
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 DS301_PDF_INDEX = {0x1000: 86, 0x1001: 87, 0x1002: 87, 0x1003: 88, 0x1005: 89, 0x1006: 90, 0x1007: 90, 0x1008: 91, 0x1009: 91, 0x100A: 91, 0x100C: 92, 0x100D: 92, 0x1010: 92, 0x1011: 94, 0x1012: 97, 0x1013: 98, 0x1014: 98, 0x1015: 99, 0x1016: 100, 0x1017: 101, 0x1018: 101, 0x1020: 117, 0x1200: 103, 0x1201: 103, 0x1280: 105, 0x1400: 106, 0x1600: 109, 0x1800: 111, 0x1A00: 112}
<a name="l00007"></a>00007 
<a name="l00008"></a><a class="code" href="namespacedoc__index_1_1DS301__index.html#07b9112f2b3d3e81b1edf3c81b6c4807">00008</a> <span class="keyword">def </span><a class="code" href="namespacedoc__index_1_1DS301__index.html#07b9112f2b3d3e81b1edf3c81b6c4807">OpenPDFDocIndex</a>(index, cwd):
<a name="l00009"></a>00009     <span class="keywordflow">if</span> <span class="keywordflow">not</span> os.path.isfile(os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>)):
<a name="l00010"></a>00010         <span class="keywordflow">return</span> <span class="stringliteral">"""No documentation file available.</span>
<a name="l00011"></a>00011 <span class="stringliteral">Please read can festival documentation to know how to obtain one."""</span>
<a name="l00012"></a>00012     <span class="keywordflow">try</span>:
<a name="l00013"></a>00013         <span class="keywordflow">if</span> index <span class="keywordflow">in</span> DS301_PDF_INDEX:
<a name="l00014"></a>00014             os.system(<span class="stringliteral">"xpdf -remote DS301 %s %d &amp;"</span>%(os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>), DS301_PDF_INDEX[index]))
<a name="l00015"></a>00015         <span class="keywordflow">else</span>:
<a name="l00016"></a>00016             os.system(<span class="stringliteral">"xpdf -remote DS301 %s &amp;"</span>%os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>))
<a name="l00017"></a>00017         <span class="keywordflow">return</span> <span class="keyword">True</span>
<a name="l00018"></a>00018     <span class="keywordflow">except</span>:
<a name="l00019"></a>00019         <span class="keywordflow">return</span> <span class="stringliteral">"""Check if xpdf is correctly installed on your computer"""</span>
<a name="l00020"></a>00020         
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:06 2007 for CanFestival by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>