doc/api/python/localisation-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>localisation</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;localisation
       
    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="localisation-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="localisation-module.html">Module localisation</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        : localisation.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">""" Localisation related function. </tt> </tt>
       
    75 <a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">        * Parsing of languages.xml</tt> </tt>
       
    76 <a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
       
    77 <a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
       
    78 <a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">amara</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">os</tt> </tt>
       
    80 <a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module bsf=bsf-module.html"><a title="bsf" class="py-name" href="#" onclick="return doclink('link-0', 'bsf', 'link-0');">bsf</a></tt> </tt>
       
    81 <a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Method buildtools.Command.path()=buildtools.Command-class.html#path,Method sysdef.api.SpecialInstruction.path()=sysdef.api.SpecialInstruction-class.html#path,Method sysdef.api.Unit.path()=sysdef.api.Unit-class.html#path"><a title="buildtools.Command.path
       
    82 sysdef.api.SpecialInstruction.path
       
    83 sysdef.api.Unit.path" class="py-name" href="#" onclick="return doclink('link-1', 'path', 'link-1');">path</a></tt> </tt>
       
    84 <a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
       
    85 <a name="Languages"></a><div id="Languages-def"><a name="L29"></a><tt class="py-lineno"> 29</tt> <a class="py-toggle" href="#" id="Languages-toggle" onclick="return toggle('Languages');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="localisation.Languages-class.html">Languages</a><tt class="py-op">:</tt> </tt>
       
    86 </div><div id="Languages-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Languages-expanded"><a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt class="py-docstring">""" Languages.xml file parser. """</tt> </tt>
       
    87 <a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"> </tt>
       
    88 <a name="Languages.__init__"></a><div id="Languages.__init__-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="Languages.__init__-toggle" onclick="return toggle('Languages.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">filename</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
    89 </div><div id="Languages.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Languages.__init__-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__filename</tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name" targets="Variable symrec.ReleaseMetadata.filename=symrec.ReleaseMetadata-class.html#filename"><a title="symrec.ReleaseMetadata.filename" class="py-name" href="#" onclick="return doclink('link-2', 'filename', 'link-2');">filename</a></tt> </tt>
       
    90 <a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__xml</tt> <tt class="py-op">=</tt> <tt class="py-name">amara</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Method bsf.BSF.parse()=bsf.BSF-class.html#parse,Method symbian.log.Parser.parse()=symbian.log.Parser-class.html#parse"><a title="bsf.BSF.parse
       
    91 symbian.log.Parser.parse" class="py-name" href="#" onclick="return doclink('link-3', 'parse', 'link-3');">parse</a></tt><tt class="py-op">(</tt><tt class="py-name">open</tt><tt class="py-op">(</tt><tt id="link-4" class="py-name"><a title="symrec.ReleaseMetadata.filename" class="py-name" href="#" onclick="return doclink('link-4', 'filename', 'link-2');">filename</a></tt><tt class="py-op">,</tt><tt class="py-string">"r"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>         </tt>
       
    92 </div><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">     </tt>
       
    93 <a name="Languages.get_language_ids"></a><div id="Languages.get_language_ids-def"><a name="L36"></a><tt class="py-lineno"> 36</tt> <a class="py-toggle" href="#" id="Languages.get_language_ids-toggle" onclick="return toggle('Languages.get_language_ids');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#get_language_ids">get_language_ids</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
    94 </div><div id="Languages.get_language_ids-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Languages.get_language_ids-expanded"><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-docstring">""" returns languages id list """</tt> </tt>
       
    95 <a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
       
    96 <a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">language</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__xml</tt><tt class="py-op">.</tt><tt class="py-name">xml_xpath</tt><tt class="py-op">(</tt><tt class="py-string">"/languages/language"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
    97 <a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">            <tt class="py-name">result</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method ccm.Folder.append()=ccm.Folder-class.html#append,Method ccm.Task.append()=ccm.Task-class.html#append"><a title="ccm.Folder.append
       
    98 ccm.Task.append" class="py-name" href="#" onclick="return doclink('link-5', 'append', 'link-5');">append</a></tt><tt class="py-op">(</tt><tt class="py-name">language</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method sysdef.api.Unit.id()=sysdef.api.Unit-class.html#id"><a title="sysdef.api.Unit.id" class="py-name" href="#" onclick="return doclink('link-6', 'id', 'link-6');">id</a></tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
       
    99 <a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
       
   100 </div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">             </tt>
       
   101 <a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"> </tt>
       
   102 <a name="Languages.get_name"></a><div id="Languages.get_name-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="Languages.get_name-toggle" onclick="return toggle('Languages.get_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#get_name">get_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">lid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   103 </div><div id="Languages.get_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Languages.get_name-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-docstring">""" returns languages id list """</tt> </tt>
       
   104 <a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">language</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__xml</tt><tt class="py-op">.</tt><tt class="py-name">xml_xpath</tt><tt class="py-op">(</tt><tt class="py-string">"/languages/language[@id='%s']"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   105 <a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">language</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method buildtools.Command.name()=buildtools.Command-class.html#name,Method ccm.FourPartName.name()=ccm.FourPartName-class.html#name,Method symrec.ServicePack.name()=symrec.ServicePack-class.html#name,Method sysdef.api.Configuration.name()=sysdef.api.Configuration-class.html#name,Method sysdef.api.Option.name()=sysdef.api.Option-class.html#name,Method sysdef.api.SpecialInstruction.name()=sysdef.api.SpecialInstruction-class.html#name,Method sysdef.api.Target.name()=sysdef.api.Target-class.html#name,Method sysdef.api.TargetList.name()=sysdef.api.TargetList-class.html#name,Method sysdef.api.Unit.name()=sysdef.api.Unit-class.html#name,Method sysdef.api._UnitGroup.name()=sysdef.api._UnitGroup-class.html#name"><a title="buildtools.Command.name
       
   106 ccm.FourPartName.name
       
   107 symrec.ServicePack.name
       
   108 sysdef.api.Configuration.name
       
   109 sysdef.api.Option.name
       
   110 sysdef.api.SpecialInstruction.name
       
   111 sysdef.api.Target.name
       
   112 sysdef.api.TargetList.name
       
   113 sysdef.api.Unit.name
       
   114 sysdef.api._UnitGroup.name" class="py-name" href="#" onclick="return doclink('link-7', 'name', 'link-7');">name</a></tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   115 </div><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"> </tt>
       
   116 <a name="Languages.get_attribute"></a><div id="Languages.get_attribute-def"><a name="L49"></a><tt class="py-lineno"> 49</tt> <a class="py-toggle" href="#" id="Languages.get_attribute-toggle" onclick="return toggle('Languages.get_attribute');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#get_attribute">get_attribute</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">lid</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">default</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   117 </div><div id="Languages.get_attribute-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Languages.get_attribute-expanded"><a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-docstring">""" returns the value for a specific language attribute name. It returns default if not found. """</tt> </tt>
       
   118 <a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">language</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__xml</tt><tt class="py-op">.</tt><tt class="py-name">xml_xpath</tt><tt class="py-op">(</tt><tt class="py-string">"/languages/language[@id='%s']/%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name"><a title="buildtools.Command.name
       
   119 ccm.FourPartName.name
       
   120 symrec.ServicePack.name
       
   121 sysdef.api.Configuration.name
       
   122 sysdef.api.Option.name
       
   123 sysdef.api.SpecialInstruction.name
       
   124 sysdef.api.Target.name
       
   125 sysdef.api.TargetList.name
       
   126 sysdef.api.Unit.name
       
   127 sysdef.api._UnitGroup.name" class="py-name" href="#" onclick="return doclink('link-8', 'name', 'link-7');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   128 <a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">language</tt><tt class="py-op">.</tt><tt class="py-name">xml_child_text</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   129 <a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">default</tt> </tt>
       
   130 </div><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">     </tt>
       
   131 <a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">     </tt>
       
   132 <a name="Languages.get_fallbacks"></a><div id="Languages.get_fallbacks-def"><a name="L56"></a><tt class="py-lineno"> 56</tt> <a class="py-toggle" href="#" id="Languages.get_fallbacks-toggle" onclick="return toggle('Languages.get_fallbacks');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#get_fallbacks">get_fallbacks</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">lid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>         </tt>
       
   133 </div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-docstring">""" Return the list of available fallbacks</tt> </tt>
       
   134 <a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-docstring">            None if not any.</tt> </tt>
       
   135 <a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
       
   136 <a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method localisation.Languages.get_attribute()=localisation.Languages-class.html#get_attribute"><a title="localisation.Languages.get_attribute" class="py-name" href="#" onclick="return doclink('link-9', 'get_attribute', 'link-9');">get_attribute</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-string">'fallbacks'</tt><tt class="py-op">)</tt> </tt>
       
   137 <a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">string</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   138 <a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">string</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">)</tt> </tt>
       
   139 <a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
       
   140 </div><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">     </tt>
       
   141 <a name="Languages.find_first_fallback"></a><div id="Languages.find_first_fallback-def"><a name="L65"></a><tt class="py-lineno"> 65</tt> <a class="py-toggle" href="#" id="Languages.find_first_fallback-toggle" onclick="return toggle('Languages.find_first_fallback');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation.Languages-class.html#find_first_fallback">find_first_fallback</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">lid</tt><tt class="py-op">,</tt> <tt class="py-param">exists</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   142 </div><div id="Languages.find_first_fallback-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Languages.find_first_fallback-expanded"><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-docstring">""" Find recursively the first reasonable alternative</tt> </tt>
       
   143 <a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt class="py-docstring">            lid the language id</tt> </tt>
       
   144 <a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"><tt class="py-docstring">            exists an existance function that takes a language id</tt> </tt>
       
   145 <a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-docstring">            as parameter and return a boolean</tt> </tt>
       
   146 <a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
       
   147 <a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">         </tt>
       
   148 <a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-10" class="py-name" targets="Method ccm.CCMObject.exists()=ccm.CCMObject-class.html#exists"><a title="ccm.CCMObject.exists" class="py-name" href="#" onclick="return doclink('link-10', 'exists', 'link-10');">exists</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   149 <a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">lid</tt> </tt>
       
   150 <a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">         </tt>
       
   151 <a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-comment"># get fallback list</tt> </tt>
       
   152 <a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">fallbacks</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method localisation.Languages.get_fallbacks()=localisation.Languages-class.html#get_fallbacks"><a title="localisation.Languages.get_fallbacks" class="py-name" href="#" onclick="return doclink('link-11', 'get_fallbacks', 'link-11');">get_fallbacks</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">)</tt> </tt>
       
   153 <a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">fallbacks</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
   154 <a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
       
   155 <a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">         </tt>
       
   156 <a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">fallback</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fallbacks</tt><tt class="py-op">:</tt> </tt>
       
   157 <a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-12" class="py-name"><a title="ccm.CCMObject.exists" class="py-name" href="#" onclick="return doclink('link-12', 'exists', 'link-10');">exists</a></tt><tt class="py-op">(</tt><tt class="py-name">fallback</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   158 <a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">fallback</tt> </tt>
       
   159 <a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">         </tt>
       
   160 <a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">fallback</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fallbacks</tt><tt class="py-op">:</tt> </tt>
       
   161 <a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">            <tt class="py-name">ffallback</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method localisation.Languages.find_first_fallback()=localisation.Languages-class.html#find_first_fallback"><a title="localisation.Languages.find_first_fallback" class="py-name" href="#" onclick="return doclink('link-13', 'find_first_fallback', 'link-13');">find_first_fallback</a></tt><tt class="py-op">(</tt><tt class="py-name">fallback</tt><tt class="py-op">)</tt> </tt>
       
   162 <a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">ffallback</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
   163 <a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">ffallback</tt> </tt>
       
   164 <a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"> </tt>
       
   165 <a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
       
   166 </div></div><a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">         </tt>
       
   167 <a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"> </tt>
       
   168 <a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"> </tt>
       
   169 <a name="get_all_variations"></a><div id="get_all_variations-def"><a name="L93"></a><tt class="py-lineno"> 93</tt> <a class="py-toggle" href="#" id="get_all_variations-toggle" onclick="return toggle('get_all_variations');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation-module.html#get_all_variations">get_all_variations</a><tt class="py-op">(</tt><tt class="py-param">languages_xml</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   170 </div><div id="get_all_variations-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="get_all_variations-expanded"><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">    <tt class="py-docstring">""" Returns a list of all regional variations supported by platform. """</tt> </tt>
       
   171 <a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt class="py-name">variations</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'western'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">}</tt> </tt>
       
   172 <a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">    <tt id="link-14" class="py-name" targets="Method symrec.MetadataMerger.xml()=symrec.MetadataMerger-class.html#xml,Method symrec.ReleaseMetadata.xml()=symrec.ReleaseMetadata-class.html#xml"><a title="symrec.MetadataMerger.xml
       
   173 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-14', 'xml', 'link-14');">xml</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name" targets="Class localisation.Languages=localisation.Languages-class.html"><a title="localisation.Languages" class="py-name" href="#" onclick="return doclink('link-15', 'Languages', 'link-15');">Languages</a></tt><tt class="py-op">(</tt><tt class="py-name">languages_xml</tt><tt class="py-op">)</tt> </tt>
       
   174 <a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">lid</tt> <tt class="py-keyword">in</tt> <tt id="link-16" class="py-name"><a title="symrec.MetadataMerger.xml
       
   175 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-16', 'xml', 'link-14');">xml</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Method localisation.Languages.get_language_ids()=localisation.Languages-class.html#get_language_ids"><a title="localisation.Languages.get_language_ids" class="py-name" href="#" onclick="return doclink('link-17', 'get_language_ids', 'link-17');">get_language_ids</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   176 <a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">variations</tt><tt class="py-op">[</tt><tt id="link-18" class="py-name"><a title="symrec.MetadataMerger.xml
       
   177 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-18', 'xml', 'link-14');">xml</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="localisation.Languages.get_attribute" class="py-name" href="#" onclick="return doclink('link-19', 'get_attribute', 'link-9');">get_attribute</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-string">'core'</tt><tt class="py-op">,</tt> <tt class="py-string">'western'</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
       
   178 <a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">variations</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Method ccm.CCMObject.keys()=ccm.CCMObject-class.html#keys,Method configuration.Configuration.keys()=configuration.Configuration-class.html#keys,Method configuration.NestedConfiguration.keys()=configuration.NestedConfiguration-class.html#keys,Method symrec.ReleaseMetadata.keys()=symrec.ReleaseMetadata-class.html#keys"><a title="ccm.CCMObject.keys
       
   179 configuration.Configuration.keys
       
   180 configuration.NestedConfiguration.keys
       
   181 symrec.ReleaseMetadata.keys" class="py-name" href="#" onclick="return doclink('link-20', 'keys', 'link-20');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   182 </div><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"> </tt>
       
   183 <a name="get_languages_for_variation"></a><div id="get_languages_for_variation-def"><a name="L101"></a><tt class="py-lineno">101</tt> <a class="py-toggle" href="#" id="get_languages_for_variation-toggle" onclick="return toggle('get_languages_for_variation');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation-module.html#get_languages_for_variation">get_languages_for_variation</a><tt class="py-op">(</tt><tt class="py-param">languages_xml</tt><tt class="py-op">,</tt> <tt class="py-param">variation</tt><tt class="py-op">=</tt><tt class="py-string">'western'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   184 </div><div id="get_languages_for_variation-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="get_languages_for_variation-expanded"><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-docstring">""" Returns alist of all supported languages for a specific region. """</tt> </tt>
       
   185 <a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">    <tt id="link-21" class="py-name"><a title="symrec.MetadataMerger.xml
       
   186 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-21', 'xml', 'link-14');">xml</a></tt> <tt class="py-op">=</tt> <tt id="link-22" class="py-name"><a title="localisation.Languages" class="py-name" href="#" onclick="return doclink('link-22', 'Languages', 'link-15');">Languages</a></tt><tt class="py-op">(</tt><tt class="py-name">languages_xml</tt><tt class="py-op">)</tt> </tt>
       
   187 <a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">    <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
       
   188 <a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">lid</tt> <tt class="py-keyword">in</tt> <tt id="link-23" class="py-name"><a title="symrec.MetadataMerger.xml
       
   189 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-23', 'xml', 'link-14');">xml</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="localisation.Languages.get_language_ids" class="py-name" href="#" onclick="return doclink('link-24', 'get_language_ids', 'link-17');">get_language_ids</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   190 <a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="symrec.MetadataMerger.xml
       
   191 symrec.ReleaseMetadata.xml" class="py-name" href="#" onclick="return doclink('link-25', 'xml', 'link-14');">xml</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="localisation.Languages.get_attribute" class="py-name" href="#" onclick="return doclink('link-26', 'get_attribute', 'link-9');">get_attribute</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-string">'core'</tt><tt class="py-op">,</tt> <tt class="py-string">'western'</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">variation</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   192 <a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">result</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="ccm.Folder.append
       
   193 ccm.Task.append" class="py-name" href="#" onclick="return doclink('link-27', 'append', 'link-5');">append</a></tt><tt class="py-op">(</tt><tt class="py-name">lid</tt><tt class="py-op">)</tt> </tt>
       
   194 <a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
       
   195 </div><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
       
   196 <a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"> </tt>
       
   197 <a name="_apply_override"></a><div id="_apply_override-def"><a name="L111"></a><tt class="py-lineno">111</tt> <a class="py-toggle" href="#" id="_apply_override-toggle" onclick="return toggle('_apply_override');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation-module.html#_apply_override">_apply_override</a><tt class="py-op">(</tt><tt class="py-param">overrides</tt><tt class="py-op">,</tt> <tt class="py-param">line</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   198 </div><div id="_apply_override-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_apply_override-expanded"><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">    <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt id="link-28" 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
       
   199 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-28', 'match', 'link-28');">match</a></tt><tt class="py-op">(</tt><tt class="py-string">r'\s*(data|file)=\s*(\S+)\s+(\S+)'</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
   200 <a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">res</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">overrides</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   201 <a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">"OVERRIDE: %s =&gt; %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</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-name">overrides</tt><tt class="py-op">[</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt>          </tt>
       
   202 <a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"%s=%s %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">overrides</tt><tt class="py-op">[</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
       
   203 <a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">line</tt>  </tt>
       
   204 </div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">         </tt>
       
   205 <a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"> </tt>
       
   206 <a name="create_locales_iby"></a><div id="create_locales_iby-def"><a name="L119"></a><tt class="py-lineno">119</tt> <a class="py-toggle" href="#" id="create_locales_iby-toggle" onclick="return toggle('create_locales_iby');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation-module.html#create_locales_iby">create_locales_iby</a><tt class="py-op">(</tt><tt class="py-param">product</tt><tt class="py-op">,</tt> <tt class="py-param">lid</tt><tt class="py-op">,</tt> <tt class="py-param">flags</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">prefix</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-param">suffix</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   207 </div><div id="create_locales_iby-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="create_locales_iby-expanded"><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">    <tt class="py-docstring">""" Function that generates locales_xx.iby into rom product folder.</tt> </tt>
       
   208 <a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
       
   209 <a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
   210 <a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
       
   211 <a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">    <tt class="py-name">bsfs</tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="bsf" class="py-name" href="#" onclick="return doclink('link-29', 'bsf', 'link-0');">bsf</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Function bsf.read_all()=bsf-module.html#read_all"><a title="bsf.read_all" class="py-name" href="#" onclick="return doclink('link-30', 'read_all', 'link-30');">read_all</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   212 <a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">bsfs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-31" class="py-name" targets="Variable symrec.ReleaseMetadata.product=symrec.ReleaseMetadata-class.html#product"><a title="symrec.ReleaseMetadata.product" class="py-name" href="#" onclick="return doclink('link-31', 'product', 'link-31');">product</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   213 <a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt><tt class="py-op">(</tt><tt class="py-string">"Product not defined, could not find %s.bsf"</tt> <tt class="py-op">%</tt> <tt id="link-32" class="py-name"><a title="symrec.ReleaseMetadata.product" class="py-name" href="#" onclick="return doclink('link-32', 'product', 'link-31');">product</a></tt><tt class="py-op">)</tt> </tt>
       
   214 <a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">     </tt>
       
   215 <a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-name">variantpath</tt> <tt class="py-op">=</tt> <tt class="py-name">bsfs</tt><tt class="py-op">[</tt><tt id="link-33" class="py-name"><a title="symrec.ReleaseMetadata.product" class="py-name" href="#" onclick="return doclink('link-33', 'product', 'link-31');">product</a></tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Method bsf.BSF.get_path()=bsf.BSF-class.html#get_path"><a title="bsf.BSF.get_path" class="py-name" href="#" onclick="return doclink('link-34', 'get_path', 'link-34');">get_path</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   216 <a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">lid</tt> <tt class="py-op">==</tt> <tt class="py-string">"sc"</tt><tt class="py-op">:</tt> </tt>
       
   217 <a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> </tt>
       
   218 <a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">    <tt class="py-name">outputfile</tt> <tt class="py-op">=</tt> <tt class="py-string">"/epoc32/rom/%s/locales_%s.iby"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">variantpath</tt><tt class="py-op">,</tt> <tt class="py-name">lid</tt><tt class="py-op">)</tt> </tt>
       
   219 <a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">     </tt>
       
   220 <a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-op">(</tt><tt class="py-string">"Generating %s..."</tt> <tt class="py-op">%</tt> <tt class="py-name">outputfile</tt><tt class="py-op">)</tt> </tt>
       
   221 <a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"> </tt>
       
   222 <a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">     </tt>
       
   223 <a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">    <tt id="link-35" class="py-name" targets="Variable ccm.Result.output=ccm.Result-class.html#output,Package helium.output=helium.output-module.html"><a title="ccm.Result.output
       
   224 helium.output" class="py-name" href="#" onclick="return doclink('link-35', 'output', 'link-35');">output</a></tt> <tt class="py-op">=</tt> <tt class="py-name">open</tt> <tt class="py-op">(</tt><tt class="py-name">outputfile</tt><tt class="py-op">,</tt> <tt class="py-string">"w+"</tt><tt class="py-op">)</tt> </tt>
       
   225 <a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">    <tt id="link-36" class="py-name"><a title="ccm.Result.output
       
   226 helium.output" class="py-name" href="#" onclick="return doclink('link-36', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-37" class="py-name" targets="Method archive.builders.ArchivePreBuilder.write()=archive.builders.ArchivePreBuilder-class.html#write,Method build.model.BOMDeltaXMLWriter.write()=build.model.BOMDeltaXMLWriter-class.html#write,Method build.model.BOMXMLWriter.write()=build.model.BOMXMLWriter-class.html#write,Method buildtools.AbstractOutputWriter.write()=buildtools.AbstractOutputWriter-class.html#write,Method buildtools.AntWriter.write()=buildtools.AntWriter-class.html#write,Method buildtools.EBSWriter.write()=buildtools.EBSWriter-class.html#write,Method buildtools.MakeWriter.write()=buildtools.MakeWriter-class.html#write,Method buildtools.StringWriter.write()=buildtools.StringWriter-class.html#write,Method flash_config.FlashConfigurationWriter.write()=flash_config.FlashConfigurationWriter-class.html#write,Method helium.documentation.APIDeltaWriter.write()=helium.documentation.APIDeltaWriter-class.html#write,Method sis.SisPreBuilder.write()=sis.SisPreBuilder-class.html#write,Method sysdef.io.FlashImageSizeWriter.write()=sysdef.io.FlashImageSizeWriter-class.html#write,Method sysdef.io.MakeWriter.write()=sysdef.io.MakeWriter-class.html#write,Method sysdef.io.MakeWriter2.write()=sysdef.io.MakeWriter2-class.html#write,Method sysdef.io.MakeWriter3.write()=sysdef.io.MakeWriter3-class.html#write,Method version.Version.write()=version.Version-class.html#write"><a title="archive.builders.ArchivePreBuilder.write
       
   227 build.model.BOMDeltaXMLWriter.write
       
   228 build.model.BOMXMLWriter.write
       
   229 buildtools.AbstractOutputWriter.write
       
   230 buildtools.AntWriter.write
       
   231 buildtools.EBSWriter.write
       
   232 buildtools.MakeWriter.write
       
   233 buildtools.StringWriter.write
       
   234 flash_config.FlashConfigurationWriter.write
       
   235 helium.documentation.APIDeltaWriter.write
       
   236 sis.SisPreBuilder.write
       
   237 sysdef.io.FlashImageSizeWriter.write
       
   238 sysdef.io.MakeWriter.write
       
   239 sysdef.io.MakeWriter2.write
       
   240 sysdef.io.MakeWriter3.write
       
   241 version.Version.write" class="py-name" href="#" onclick="return doclink('link-37', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"#ifndef __LOCALES_%s_IBY__\n"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">)</tt> </tt>
       
   242 <a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">    <tt id="link-38" class="py-name"><a title="ccm.Result.output
       
   243 helium.output" class="py-name" href="#" onclick="return doclink('link-38', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   244 build.model.BOMDeltaXMLWriter.write
       
   245 build.model.BOMXMLWriter.write
       
   246 buildtools.AbstractOutputWriter.write
       
   247 buildtools.AntWriter.write
       
   248 buildtools.EBSWriter.write
       
   249 buildtools.MakeWriter.write
       
   250 buildtools.StringWriter.write
       
   251 flash_config.FlashConfigurationWriter.write
       
   252 helium.documentation.APIDeltaWriter.write
       
   253 sis.SisPreBuilder.write
       
   254 sysdef.io.FlashImageSizeWriter.write
       
   255 sysdef.io.MakeWriter.write
       
   256 sysdef.io.MakeWriter2.write
       
   257 sysdef.io.MakeWriter3.write
       
   258 version.Version.write" class="py-name" href="#" onclick="return doclink('link-39', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"#define __LOCALES_%s_IBY__\n"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">)</tt> </tt>
       
   259 <a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">     </tt>
       
   260 <a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">    <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
       
   261 <a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">    <tt class="py-name">configs</tt> <tt class="py-op">=</tt> <tt class="py-name">bsfs</tt><tt class="py-op">[</tt><tt id="link-40" class="py-name"><a title="symrec.ReleaseMetadata.product" class="py-name" href="#" onclick="return doclink('link-40', 'product', 'link-31');">product</a></tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Method bsf.BSF.get_path_as_array()=bsf.BSF-class.html#get_path_as_array"><a title="bsf.BSF.get_path_as_array" class="py-name" href="#" onclick="return doclink('link-41', 'get_path_as_array', 'link-41');">get_path_as_array</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   262 <a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">    <tt class="py-name">configs</tt><tt class="py-op">.</tt><tt class="py-name">reverse</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   263 <a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">customisation</tt> <tt class="py-keyword">in</tt> <tt class="py-name">configs</tt><tt class="py-op">:</tt> </tt>
       
   264 <a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">+=</tt> <tt class="py-string">"-I \"./%s\" "</tt> <tt class="py-op">%</tt> <tt class="py-name">bsfs</tt><tt class="py-op">[</tt><tt class="py-name">customisation</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="bsf.BSF.get_path" class="py-name" href="#" onclick="return doclink('link-42', 'get_path', 'link-34');">get_path</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   265 <a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">+=</tt> <tt class="py-string">"-I \"../include/%s\" "</tt> <tt class="py-op">%</tt> <tt class="py-name">bsfs</tt><tt class="py-op">[</tt><tt class="py-name">customisation</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="bsf.BSF.get_path" class="py-name" href="#" onclick="return doclink('link-43', 'get_path', 'link-34');">get_path</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   266 <a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">     </tt>
       
   267 <a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">    <tt class="py-name">args</tt> <tt class="py-op">+=</tt> <tt class="py-string">"-I ..\\include\\oem"</tt> </tt>
       
   268 <a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">flag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">flags</tt><tt class="py-op">:</tt> </tt>
       
   269 <a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">args</tt> <tt class="py-op">+</tt> <tt class="py-string">" -D%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">flag</tt> </tt>
       
   270 <a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">     </tt>
       
   271 <a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">    <tt class="py-name">cdir</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">curdir</tt> </tt>
       
   272 <a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">    <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">chdir</tt> <tt class="py-op">(</tt><tt class="py-string">"/epoc32/rom"</tt><tt class="py-op">)</tt> </tt>
       
   273 <a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">    <tt id="link-44" class="py-name" targets="Method buildtools.Command.cmd()=buildtools.Command-class.html#cmd"><a title="buildtools.Command.cmd" class="py-name" href="#" onclick="return doclink('link-44', 'cmd', 'link-44');">cmd</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"cpp -nostdinc -u %s %s include\\locales_sc.iby -include .\\include\\header.iby %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">prefix</tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-name">suffix</tt><tt class="py-op">)</tt> </tt>
       
   274 <a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-op">(</tt><tt class="py-string">"Calling %s\n"</tt> <tt class="py-op">%</tt> <tt id="link-45" class="py-name"><a title="buildtools.Command.cmd" class="py-name" href="#" onclick="return doclink('link-45', 'cmd', 'link-44');">cmd</a></tt><tt class="py-op">)</tt> </tt>
       
   275 <a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">    <tt class="py-name">stdin</tt><tt class="py-op">,</tt> <tt class="py-name">stdout</tt><tt class="py-op">,</tt> <tt class="py-name">stderr</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">popen3</tt><tt class="py-op">(</tt><tt id="link-46" class="py-name"><a title="buildtools.Command.cmd" class="py-name" href="#" onclick="return doclink('link-46', 'cmd', 'link-44');">cmd</a></tt><tt class="py-op">)</tt> </tt>
       
   276 <a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">    <tt class="py-name">stdin</tt><tt class="py-op">.</tt><tt id="link-47" 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
       
   277 build.model.SessionCreator.close
       
   278 buildtools.AbstractOutputWriter.close
       
   279 ccm.AbstractSession.close
       
   280 ccm.Session.close
       
   281 ccm.SessionPool.close
       
   282 ccm.extra.CachedSessionProvider.close
       
   283 ccm.extra.SessionProvider.close
       
   284 log2xml.LogWriter.close
       
   285 preparation.PreparationBuilder.close
       
   286 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-47', 'close', 'link-47');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   287 <a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">    <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt class="py-name">read</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   288 <a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">    <tt class="py-name">errors</tt> <tt class="py-op">=</tt>  <tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt class="py-name">read</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   289 <a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">    <tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="build.model.BOM.close
       
   290 build.model.SessionCreator.close
       
   291 buildtools.AbstractOutputWriter.close
       
   292 ccm.AbstractSession.close
       
   293 ccm.Session.close
       
   294 ccm.SessionPool.close
       
   295 ccm.extra.CachedSessionProvider.close
       
   296 ccm.extra.SessionProvider.close
       
   297 log2xml.LogWriter.close
       
   298 preparation.PreparationBuilder.close
       
   299 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-48', 'close', 'link-47');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   300 <a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">    <tt class="py-name">status</tt> <tt class="py-op">=</tt> <tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="build.model.BOM.close
       
   301 build.model.SessionCreator.close
       
   302 buildtools.AbstractOutputWriter.close
       
   303 ccm.AbstractSession.close
       
   304 ccm.Session.close
       
   305 ccm.SessionPool.close
       
   306 ccm.extra.CachedSessionProvider.close
       
   307 ccm.extra.SessionProvider.close
       
   308 log2xml.LogWriter.close
       
   309 preparation.PreparationBuilder.close
       
   310 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-49', 'close', 'link-47');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-number">0</tt> </tt>
       
   311 <a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">     </tt>
       
   312 <a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">errors</tt> </tt>
       
   313 <a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"> </tt>
       
   314 <a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">    <tt class="py-comment"># parsing overrides first    </tt> </tt>
       
   315 <a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">overrides</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
       
   316 <a name="L166"></a><tt class="py-lineno">166</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">result</tt><tt class="py-op">.</tt><tt class="py-name">splitlines</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   317 <a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">        <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="fileutils.AbstractScanner.match
       
   318 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-50', 'match', 'link-28');">match</a></tt><tt class="py-op">(</tt><tt class="py-string">r'^\s*(?:ROM_IMAGE\[\d+\]\s+)?data-override\s*=\s*(\S+)\s+(\S+)'</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
   319 <a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">res</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
   320 <a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">"Found override directive %s -&gt; %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</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-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
       
   321 <a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt class="py-name">overrides</tt><tt class="py-op">[</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</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-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
       
   322 <a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">         </tt>
       
   323 <a name="L172"></a><tt class="py-lineno">172</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">result</tt><tt class="py-op">.</tt><tt class="py-name">splitlines</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>         </tt>
       
   324 <a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name"><a title="fileutils.AbstractScanner.match
       
   325 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-51', 'match', 'link-28');">match</a></tt><tt class="py-op">(</tt><tt class="py-string">r'^\s*(ROM_IMAGE\[\d+\]\s+)?data-override\s*=\s*(\S+)\s+(\S+)'</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>             </tt>
       
   326 <a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
       
   327 <a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
       
   328 <a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">            <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt id="link-52" class="py-name" targets="Function localisation._apply_override()=localisation-module.html#_apply_override"><a title="localisation._apply_override" class="py-name" href="#" onclick="return doclink('link-52', '_apply_override', 'link-52');">_apply_override</a></tt><tt class="py-op">(</tt><tt class="py-name">overrides</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
   329 <a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="fileutils.AbstractScanner.match
       
   330 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-53', 'match', 'link-28');">match</a></tt><tt class="py-op">(</tt><tt class="py-string">"^\\s*data\\s*=\\s*MULTI_LINGUIFY"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   331 <a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">                <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"MULTI_LINGUIFY\s*\(\s*(\S+)\s+(\S+)\s+(\S+)\s*\)"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
   332 <a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">"rsc"</tt><tt class="py-op">:</tt> </tt>
       
   333 <a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">                    <tt class="py-name">ext</tt> <tt class="py-op">=</tt> <tt class="py-string">"r%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt> </tt>
       
   334 <a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">                    <tt id="link-54" class="py-name"><a title="ccm.Result.output
       
   335 helium.output" class="py-name" href="#" onclick="return doclink('link-54', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   336 build.model.BOMDeltaXMLWriter.write
       
   337 build.model.BOMXMLWriter.write
       
   338 buildtools.AbstractOutputWriter.write
       
   339 buildtools.AntWriter.write
       
   340 buildtools.EBSWriter.write
       
   341 buildtools.MakeWriter.write
       
   342 buildtools.StringWriter.write
       
   343 flash_config.FlashConfigurationWriter.write
       
   344 helium.documentation.APIDeltaWriter.write
       
   345 sis.SisPreBuilder.write
       
   346 sysdef.io.FlashImageSizeWriter.write
       
   347 sysdef.io.MakeWriter.write
       
   348 sysdef.io.MakeWriter2.write
       
   349 sysdef.io.MakeWriter3.write
       
   350 version.Version.write" class="py-name" href="#" onclick="return doclink('link-55', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"data=%s.%s %s.%s\n"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</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-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">group</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">ext</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
       
   351 <a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
       
   352 <a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">                    <tt class="py-keyword">print</tt> <tt class="py-string">"WARNING: Cannot extract '%s'"</tt> <tt class="py-op">%</tt> <tt class="py-name">line</tt> </tt>
       
   353 <a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">             </tt>
       
   354 <a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"\.rsc"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
       
   355 <a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">                <tt id="link-56" class="py-name"><a title="ccm.Result.output
       
   356 helium.output" class="py-name" href="#" onclick="return doclink('link-56', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   357 build.model.BOMDeltaXMLWriter.write
       
   358 build.model.BOMXMLWriter.write
       
   359 buildtools.AbstractOutputWriter.write
       
   360 buildtools.AntWriter.write
       
   361 buildtools.EBSWriter.write
       
   362 buildtools.MakeWriter.write
       
   363 buildtools.StringWriter.write
       
   364 flash_config.FlashConfigurationWriter.write
       
   365 helium.documentation.APIDeltaWriter.write
       
   366 sis.SisPreBuilder.write
       
   367 sysdef.io.FlashImageSizeWriter.write
       
   368 sysdef.io.MakeWriter.write
       
   369 sysdef.io.MakeWriter2.write
       
   370 sysdef.io.MakeWriter3.write
       
   371 version.Version.write" class="py-name" href="#" onclick="return doclink('link-57', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"\.[rR][sS][cC]"</tt><tt class="py-op">,</tt> <tt class="py-string">r".r%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   372 <a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"\.dbz"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   373 <a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">                <tt id="link-58" class="py-name"><a title="ccm.Result.output
       
   374 helium.output" class="py-name" href="#" onclick="return doclink('link-58', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   375 build.model.BOMDeltaXMLWriter.write
       
   376 build.model.BOMXMLWriter.write
       
   377 buildtools.AbstractOutputWriter.write
       
   378 buildtools.AntWriter.write
       
   379 buildtools.EBSWriter.write
       
   380 buildtools.MakeWriter.write
       
   381 buildtools.StringWriter.write
       
   382 flash_config.FlashConfigurationWriter.write
       
   383 helium.documentation.APIDeltaWriter.write
       
   384 sis.SisPreBuilder.write
       
   385 sysdef.io.FlashImageSizeWriter.write
       
   386 sysdef.io.MakeWriter.write
       
   387 sysdef.io.MakeWriter2.write
       
   388 sysdef.io.MakeWriter3.write
       
   389 version.Version.write" class="py-name" href="#" onclick="return doclink('link-59', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"\.[dD][bB][zZ]"</tt><tt class="py-op">,</tt> <tt class="py-string">r".d%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   390 <a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"\.hlp"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   391 <a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">                <tt id="link-60" class="py-name"><a title="ccm.Result.output
       
   392 helium.output" class="py-name" href="#" onclick="return doclink('link-60', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   393 build.model.BOMDeltaXMLWriter.write
       
   394 build.model.BOMXMLWriter.write
       
   395 buildtools.AbstractOutputWriter.write
       
   396 buildtools.AntWriter.write
       
   397 buildtools.EBSWriter.write
       
   398 buildtools.MakeWriter.write
       
   399 buildtools.StringWriter.write
       
   400 flash_config.FlashConfigurationWriter.write
       
   401 helium.documentation.APIDeltaWriter.write
       
   402 sis.SisPreBuilder.write
       
   403 sysdef.io.FlashImageSizeWriter.write
       
   404 sysdef.io.MakeWriter.write
       
   405 sysdef.io.MakeWriter2.write
       
   406 sysdef.io.MakeWriter3.write
       
   407 version.Version.write" class="py-name" href="#" onclick="return doclink('link-61', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"\.[hH][lL][pP]"</tt><tt class="py-op">,</tt> <tt class="py-string">r".h%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   408 <a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"Content\\01"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   409 <a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">                <tt class="py-comment">#rename Content\01 to Content\xx (where xx is language id). This is for handlng DTD files</tt> </tt>
       
   410 <a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt id="link-62" class="py-name"><a title="ccm.Result.output
       
   411 helium.output" class="py-name" href="#" onclick="return doclink('link-62', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   412 build.model.BOMDeltaXMLWriter.write
       
   413 build.model.BOMXMLWriter.write
       
   414 buildtools.AbstractOutputWriter.write
       
   415 buildtools.AntWriter.write
       
   416 buildtools.EBSWriter.write
       
   417 buildtools.MakeWriter.write
       
   418 buildtools.StringWriter.write
       
   419 flash_config.FlashConfigurationWriter.write
       
   420 helium.documentation.APIDeltaWriter.write
       
   421 sis.SisPreBuilder.write
       
   422 sysdef.io.FlashImageSizeWriter.write
       
   423 sysdef.io.MakeWriter.write
       
   424 sysdef.io.MakeWriter2.write
       
   425 sysdef.io.MakeWriter3.write
       
   426 version.Version.write" class="py-name" href="#" onclick="return doclink('link-63', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"Content\\01"</tt><tt class="py-op">,</tt> <tt class="py-string">r"Content\\%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   427 <a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"\.o0001"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   428 <a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">                <tt class="py-name">lang</tt> <tt class="py-op">=</tt> <tt class="py-name">lid</tt> </tt>
       
   429 <a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">                <tt class="py-keyword">while</tt> <tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">lang</tt><tt class="py-op">)</tt><tt class="py-op">&lt;</tt><tt class="py-number">4</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   430 <a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">                    <tt class="py-name">lang</tt> <tt class="py-op">=</tt> <tt class="py-string">"0%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lang</tt> </tt>
       
   431 <a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">                <tt id="link-64" class="py-name"><a title="ccm.Result.output
       
   432 helium.output" class="py-name" href="#" onclick="return doclink('link-64', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   433 build.model.BOMDeltaXMLWriter.write
       
   434 build.model.BOMXMLWriter.write
       
   435 buildtools.AbstractOutputWriter.write
       
   436 buildtools.AntWriter.write
       
   437 buildtools.EBSWriter.write
       
   438 buildtools.MakeWriter.write
       
   439 buildtools.StringWriter.write
       
   440 flash_config.FlashConfigurationWriter.write
       
   441 helium.documentation.APIDeltaWriter.write
       
   442 sis.SisPreBuilder.write
       
   443 sysdef.io.FlashImageSizeWriter.write
       
   444 sysdef.io.MakeWriter.write
       
   445 sysdef.io.MakeWriter2.write
       
   446 sysdef.io.MakeWriter3.write
       
   447 version.Version.write" class="py-name" href="#" onclick="return doclink('link-65', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"\.[oO]\d+"</tt><tt class="py-op">,</tt> <tt class="py-string">".o%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lang</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   448 <a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"elocl\.dll"</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   449 <a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">                <tt id="link-66" class="py-name"><a title="ccm.Result.output
       
   450 helium.output" class="py-name" href="#" onclick="return doclink('link-66', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   451 build.model.BOMDeltaXMLWriter.write
       
   452 build.model.BOMXMLWriter.write
       
   453 buildtools.AbstractOutputWriter.write
       
   454 buildtools.AntWriter.write
       
   455 buildtools.EBSWriter.write
       
   456 buildtools.MakeWriter.write
       
   457 buildtools.StringWriter.write
       
   458 flash_config.FlashConfigurationWriter.write
       
   459 helium.documentation.APIDeltaWriter.write
       
   460 sis.SisPreBuilder.write
       
   461 sysdef.io.FlashImageSizeWriter.write
       
   462 sysdef.io.MakeWriter.write
       
   463 sysdef.io.MakeWriter2.write
       
   464 sysdef.io.MakeWriter3.write
       
   465 version.Version.write" class="py-name" href="#" onclick="return doclink('link-67', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">r"\.[lL][oO][cC]|\.[dD][lL][lL]"</tt><tt class="py-op">,</tt> <tt class="py-string">".%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">lid</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
       
   466 <a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">search</tt><tt class="py-op">(</tt><tt class="py-string">r"^\s*(data|file)="</tt><tt class="py-op">,</tt> <tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">I</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   467 <a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-op">(</tt><tt class="py-string">"WARNING: This should not be included in resource.iby '%s'\nThis file should be included using an 'applicationnameVariant.iby' file.\n"</tt> <tt class="py-op">%</tt> <tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
       
   468 <a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">    <tt id="link-68" class="py-name"><a title="ccm.Result.output
       
   469 helium.output" class="py-name" href="#" onclick="return doclink('link-68', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-69" class="py-name"><a title="archive.builders.ArchivePreBuilder.write
       
   470 build.model.BOMDeltaXMLWriter.write
       
   471 build.model.BOMXMLWriter.write
       
   472 buildtools.AbstractOutputWriter.write
       
   473 buildtools.AntWriter.write
       
   474 buildtools.EBSWriter.write
       
   475 buildtools.MakeWriter.write
       
   476 buildtools.StringWriter.write
       
   477 flash_config.FlashConfigurationWriter.write
       
   478 helium.documentation.APIDeltaWriter.write
       
   479 sis.SisPreBuilder.write
       
   480 sysdef.io.FlashImageSizeWriter.write
       
   481 sysdef.io.MakeWriter.write
       
   482 sysdef.io.MakeWriter2.write
       
   483 sysdef.io.MakeWriter3.write
       
   484 version.Version.write" class="py-name" href="#" onclick="return doclink('link-69', 'write', 'link-37');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"#endif\n"</tt><tt class="py-op">)</tt> </tt>
       
   485 <a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">    <tt id="link-70" class="py-name"><a title="ccm.Result.output
       
   486 helium.output" class="py-name" href="#" onclick="return doclink('link-70', 'output', 'link-35');">output</a></tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="build.model.BOM.close
       
   487 build.model.SessionCreator.close
       
   488 buildtools.AbstractOutputWriter.close
       
   489 ccm.AbstractSession.close
       
   490 ccm.Session.close
       
   491 ccm.SessionPool.close
       
   492 ccm.extra.CachedSessionProvider.close
       
   493 ccm.extra.SessionProvider.close
       
   494 log2xml.LogWriter.close
       
   495 preparation.PreparationBuilder.close
       
   496 sysdef.io.FlashImageSizeWriter.close" class="py-name" href="#" onclick="return doclink('link-71', 'close', 'link-47');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
       
   497 <a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">    <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">chdir</tt><tt class="py-op">(</tt><tt class="py-name">cdir</tt><tt class="py-op">)</tt> </tt>
       
   498 <a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">status</tt>     </tt>
       
   499 </div><a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"> </tt>
       
   500 <a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line"> </tt>
       
   501 <a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line"> </tt>
       
   502 <a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line"><tt id="link-72" class="py-name" targets="Variable localisation.VARIANT_ID_KEY=localisation-module.html#VARIANT_ID_KEY"><a title="localisation.VARIANT_ID_KEY" class="py-name" href="#" onclick="return doclink('link-72', 'VARIANT_ID_KEY', 'link-72');">VARIANT_ID_KEY</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'variant.id'</tt> </tt>
       
   503 <a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line"><tt id="link-73" class="py-name" targets="Variable localisation.VARIATION_DIR_KEY=localisation-module.html#VARIATION_DIR_KEY"><a title="localisation.VARIATION_DIR_KEY" class="py-name" href="#" onclick="return doclink('link-73', 'VARIATION_DIR_KEY', 'link-73');">VARIATION_DIR_KEY</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'variation.dir'</tt> </tt>
       
   504 <a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line"> </tt>
       
   505 <a name="find_variant_path"></a><div id="find_variant_path-def"><a name="L213"></a><tt class="py-lineno">213</tt> <a class="py-toggle" href="#" id="find_variant_path-toggle" onclick="return toggle('find_variant_path');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="localisation-module.html#find_variant_path">find_variant_path</a><tt class="py-op">(</tt><tt class="py-param">config</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">=</tt><tt id="link-74" class="py-name"><a title="localisation.VARIANT_ID_KEY" class="py-name" href="#" onclick="return doclink('link-74', 'VARIANT_ID_KEY', 'link-72');">VARIANT_ID_KEY</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   506 </div><div id="find_variant_path-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="find_variant_path-expanded"><a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">    <tt class="py-docstring">""" This function helps to find the variant directory</tt> </tt>
       
   507 <a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line"><tt class="py-docstring">        using variant configuration</tt> </tt>
       
   508 <a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
       
   509 <a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">config</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-75" class="py-name"><a title="localisation.VARIATION_DIR_KEY" class="py-name" href="#" onclick="return doclink('link-75', 'VARIATION_DIR_KEY', 'link-73');">VARIATION_DIR_KEY</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="buildtools.Command.path
       
   510 sysdef.api.SpecialInstruction.path
       
   511 sysdef.api.Unit.path" class="py-name" href="#" onclick="return doclink('link-76', 'path', 'link-1');">path</a></tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="ccm.CCMObject.exists" class="py-name" href="#" onclick="return doclink('link-77', 'exists', 'link-10');">exists</a></tt><tt class="py-op">(</tt><tt class="py-name">config</tt><tt class="py-op">[</tt><tt id="link-78" class="py-name"><a title="localisation.VARIATION_DIR_KEY" class="py-name" href="#" onclick="return doclink('link-78', 'VARIATION_DIR_KEY', 'link-73');">VARIATION_DIR_KEY</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   512 <a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">directory</tt> <tt class="py-keyword">in</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">listdir</tt><tt class="py-op">(</tt><tt class="py-name">config</tt><tt class="py-op">[</tt><tt id="link-79" class="py-name"><a title="localisation.VARIATION_DIR_KEY" class="py-name" href="#" onclick="return doclink('link-79', 'VARIATION_DIR_KEY', 'link-73');">VARIATION_DIR_KEY</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   513 <a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">config</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="fileutils.AbstractScanner.match
       
   514 pathaddition.match" class="py-name" href="#" onclick="return doclink('link-80', 'match', 'link-28');">match</a></tt><tt class="py-op">(</tt><tt class="py-string">r".*_%s$"</tt> <tt class="py-op">%</tt> <tt class="py-name">config</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">directory</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
       
   515 <a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name"><a title="buildtools.Command.path
       
   516 sysdef.api.SpecialInstruction.path
       
   517 sysdef.api.Unit.path" class="py-name" href="#" onclick="return doclink('link-81', 'path', 'link-1');">path</a></tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">config</tt><tt class="py-op">[</tt><tt id="link-82" class="py-name"><a title="localisation.VARIATION_DIR_KEY" class="py-name" href="#" onclick="return doclink('link-82', 'VARIATION_DIR_KEY', 'link-73');">VARIATION_DIR_KEY</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">directory</tt><tt class="py-op">)</tt> </tt>
       
   518 <a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
       
   519 </div><a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line"> </tt><script type="text/javascript">
       
   520 <!--
       
   521 expandto(location.href);
       
   522 // -->
       
   523 </script>
       
   524 </pre>
       
   525 <br />
       
   526 <!-- ==================== NAVIGATION BAR ==================== -->
       
   527 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   528        bgcolor="#a0c0ff" cellspacing="0">
       
   529   <tr valign="middle">
       
   530 
       
   531   <!-- Tree link -->
       
   532       <th>&nbsp;&nbsp;&nbsp;<a
       
   533         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   534 
       
   535   <!-- Index link -->
       
   536       <th>&nbsp;&nbsp;&nbsp;<a
       
   537         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   538 
       
   539   <!-- Help link -->
       
   540       <th>&nbsp;&nbsp;&nbsp;<a
       
   541         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   542 
       
   543       <th class="navbar" width="100%"></th>
       
   544   </tr>
       
   545 </table>
       
   546 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   547   <tr>
       
   548     <td align="left" class="footer">
       
   549     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:23 2009
       
   550     </td>
       
   551     <td align="right" class="footer">
       
   552       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   553     </td>
       
   554   </tr>
       
   555 </table>
       
   556 
       
   557 <script type="text/javascript">
       
   558   <!--
       
   559   // Private objects are initially displayed (because if
       
   560   // javascript is turned off then we want them to be
       
   561   // visible); but by default, we want to hide them.  So hide
       
   562   // them unless we have a cookie that says to show them.
       
   563   checkCookie()
       
   564   // -->
       
   565 </script>
       
   566   
       
   567 </body>
       
   568 </html>