|
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>nokia.gscm</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> <a |
|
20 href="module-tree.html">Trees</a> </th> |
|
21 |
|
22 <!-- Index link --> |
|
23 <th> <a |
|
24 href="identifier-index.html">Indices</a> </th> |
|
25 |
|
26 <!-- Help link --> |
|
27 <th> <a |
|
28 href="help.html">Help</a> </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 <a href="nokia-module.html">Package nokia</a> :: |
|
38 Module gscm |
|
39 </span> |
|
40 </td> |
|
41 <td> |
|
42 <table cellpadding="0" cellspacing="0"> |
|
43 <!-- hide/show private --> |
|
44 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" |
|
45 onclick="toggle_private();">hide private</a>]</span></td></tr> |
|
46 <tr><td align="right"><span class="options" |
|
47 >[<a href="frames.html" target="_top">frames</a |
|
48 >] | <a href="nokia.gscm-pysrc.html" |
|
49 target="_top">no frames</a>]</span></td></tr> |
|
50 </table> |
|
51 </td> |
|
52 </tr> |
|
53 </table> |
|
54 <h1 class="epydoc">Source Code for <a href="nokia.gscm-module.html">Module nokia.gscm</a></h1> |
|
55 <pre class="py-src"> |
|
56 <a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment">#============================================================================ </tt> </tt> |
|
57 <a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#Name : gscm.py </tt> </tt> |
|
58 <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> |
|
59 <a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-comment"></tt> </tt> |
|
60 <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> |
|
61 <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> |
|
62 <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> |
|
63 <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> |
|
64 <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> |
|
65 <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> |
|
66 <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> |
|
67 <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> |
|
68 <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> |
|
69 <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> |
|
70 <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> |
|
71 <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> |
|
72 <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> |
|
73 <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> |
|
74 <a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"><tt class="py-comment"></tt> </tt> |
|
75 <a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"><tt class="py-docstring">""" Wrapper module that get CCM info using GSCM framework. """</tt> </tt> |
|
76 <a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> </tt> |
|
77 <a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"> </tt> |
|
78 <a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt> |
|
79 <a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt> |
|
80 <a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">subprocess</tt> </tt> |
|
81 <a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> </tt> |
|
82 <a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> </tt> |
|
83 <a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"><tt class="py-comment"># Uncomment this line to enable logging in this module, or configure logging elsewhere</tt> </tt> |
|
84 <a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#logging.basicConfig(level=logging.DEBUG)</tt> </tt> |
|
85 <a name="L30"></a><tt class="py-lineno">30</tt> <tt class="py-line"><tt class="py-comment"></tt><tt id="link-0" class="py-name" targets="Variable archive.builders._logger=archive.builders-module.html#_logger,Variable archive.mappers._logger=archive.mappers-module.html#_logger,Variable archive.tools._logger=archive.tools-module.html#_logger,Variable ats3._logger=ats3-module.html#_logger,Variable ats3.aste._logger=ats3.aste-module.html#_logger,Variable ats3.dropgenerator._logger=ats3.dropgenerator-module.html#_logger,Variable ats3.parsers._logger=ats3.parsers-module.html#_logger,Variable ats3.testconfigurator._logger=ats3.testconfigurator-module.html#_logger,Variable build.io._logger=build.io-module.html#_logger,Variable build.model._logger=build.model-module.html#_logger,Variable ccm._logger=ccm-module.html#_logger,Variable ccm.extra._logger=ccm.extra-module.html#_logger,Variable comments._logger=comments-module.html#_logger,Variable configuration._logger=configuration-module.html#_logger,Variable configuration_model._logger=configuration_model-module.html#_logger,Variable delta_zip._logger=delta_zip-module.html#_logger,Variable integration.quality._logger=integration.quality-module.html#_logger,Variable nokia.gscm._logger=nokia.gscm-module.html#_logger,Variable nokia.nokiaccm._logger=nokia.nokiaccm-module.html#_logger,Variable pathaddition.match._logger=pathaddition.match-module.html#_logger,Variable preparation._logger=preparation-module.html#_logger,Variable symbian.log._logger=symbian.log-module.html#_logger,Variable sysdef.api._logger=sysdef.api-module.html#_logger"><a title="archive.builders._logger |
|
86 archive.mappers._logger |
|
87 archive.tools._logger |
|
88 ats3._logger |
|
89 ats3.aste._logger |
|
90 ats3.dropgenerator._logger |
|
91 ats3.parsers._logger |
|
92 ats3.testconfigurator._logger |
|
93 build.io._logger |
|
94 build.model._logger |
|
95 ccm._logger |
|
96 ccm.extra._logger |
|
97 comments._logger |
|
98 configuration._logger |
|
99 configuration_model._logger |
|
100 delta_zip._logger |
|
101 integration.quality._logger |
|
102 nokia.gscm._logger |
|
103 nokia.nokiaccm._logger |
|
104 pathaddition.match._logger |
|
105 preparation._logger |
|
106 symbian.log._logger |
|
107 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-0', '_logger', 'link-0');">_logger</a></tt> <tt class="py-op">=</tt> <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">getLogger</tt><tt class="py-op">(</tt><tt class="py-string">"gscm"</tt><tt class="py-op">)</tt> </tt> |
|
108 <a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> </tt> |
|
109 <a name="L32"></a><tt class="py-lineno">32</tt> <tt class="py-line"> </tt> |
|
110 <a name="_execute"></a><div id="_execute-def"><a name="L33"></a><tt class="py-lineno">33</tt> <a class="py-toggle" href="#" id="_execute-toggle" onclick="return toggle('_execute');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="nokia.gscm-module.html#_execute">_execute</a><tt class="py-op">(</tt><tt class="py-param">command</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
111 </div><div id="_execute-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="_execute-expanded"><a name="L34"></a><tt class="py-lineno">34</tt> <tt class="py-line"> <tt class="py-docstring">""" Runs a command and returns the result data. """</tt> </tt> |
|
112 <a name="L35"></a><tt class="py-lineno">35</tt> <tt class="py-line"> <tt class="py-name">process</tt> <tt class="py-op">=</tt> <tt class="py-name">subprocess</tt><tt class="py-op">.</tt><tt class="py-name">Popen</tt><tt class="py-op">(</tt><tt id="link-1" class="py-name" targets="Method sysdef.api.BuildLayer.command()=sysdef.api.BuildLayer-class.html#command,Method sysdef.api.SpecialInstruction.command()=sysdef.api.SpecialInstruction-class.html#command"><a title="sysdef.api.BuildLayer.command |
|
113 sysdef.api.SpecialInstruction.command" class="py-name" href="#" onclick="return doclink('link-1', 'command', 'link-1');">command</a></tt><tt class="py-op">,</tt> <tt class="py-name">shell</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-name">stdout</tt><tt class="py-op">=</tt><tt class="py-name">subprocess</tt><tt class="py-op">.</tt><tt class="py-name">PIPE</tt><tt class="py-op">,</tt> <tt class="py-name">stderr</tt><tt class="py-op">=</tt><tt class="py-name">subprocess</tt><tt class="py-op">.</tt><tt class="py-name">STDOUT</tt><tt class="py-op">)</tt> </tt> |
|
114 <a name="L36"></a><tt class="py-lineno">36</tt> <tt class="py-line"> <tt id="link-2" 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 |
|
115 helium.output" class="py-name" href="#" onclick="return doclink('link-2', 'output', 'link-2');">output</a></tt> <tt class="py-op">=</tt> <tt class="py-name">process</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> |
|
116 <a name="L37"></a><tt class="py-lineno">37</tt> <tt class="py-line"> <tt class="py-name">process</tt><tt class="py-op">.</tt><tt class="py-name">poll</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> |
|
117 <a name="L38"></a><tt class="py-lineno">38</tt> <tt class="py-line"> <tt class="py-name">status</tt> <tt class="py-op">=</tt> <tt class="py-name">process</tt><tt class="py-op">.</tt><tt class="py-name">returncode</tt> </tt> |
|
118 <a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt id="link-3" class="py-name"><a title="ccm.Result.output |
|
119 helium.output" class="py-name" href="#" onclick="return doclink('link-3', 'output', 'link-2');">output</a></tt><tt class="py-op">,</tt> <tt class="py-name">status</tt><tt class="py-op">)</tt> </tt> |
|
120 </div><a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"> </tt> |
|
121 <a name="L41"></a><tt class="py-lineno">41</tt> <tt class="py-line"> </tt> |
|
122 <a name="__get_gscm_info"></a><div id="__get_gscm_info-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="__get_gscm_info-toggle" onclick="return toggle('__get_gscm_info');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="nokia.gscm-module.html#__get_gscm_info">__get_gscm_info</a><tt class="py-op">(</tt><tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-param">dbname</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
123 </div><div id="__get_gscm_info-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="__get_gscm_info-expanded"><a name="L43"></a><tt class="py-lineno">43</tt> <tt class="py-line"> <tt class="py-docstring">""" Generic method that call function 'method' on GSCM wrapper script. """</tt> </tt> |
|
124 <a name="L44"></a><tt class="py-lineno">44</tt> <tt class="py-line"> <tt id="link-4" class="py-name"><a title="sysdef.api.BuildLayer.command |
|
125 sysdef.api.SpecialInstruction.command" class="py-name" href="#" onclick="return doclink('link-4', 'command', 'link-1');">command</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"perl "</tt> <tt class="py-op">+</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt id="link-5" 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 |
|
126 sysdef.api.SpecialInstruction.path |
|
127 sysdef.api.Unit.path" class="py-name" href="#" onclick="return doclink('link-5', 'path', 'link-5');">path</a></tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">[</tt><tt class="py-string">'HELIUM_HOME'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">"tools/common/bin/get_gscm_info.pl"</tt><tt class="py-op">)</tt> </tt> |
|
128 <a name="L45"></a><tt class="py-lineno">45</tt> <tt class="py-line"> <tt id="link-6" class="py-name"><a title="sysdef.api.BuildLayer.command |
|
129 sysdef.api.SpecialInstruction.command" class="py-name" href="#" onclick="return doclink('link-6', 'command', 'link-1');">command</a></tt> <tt class="py-op">+=</tt> <tt class="py-string">" %s %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
130 <a name="L46"></a><tt class="py-lineno">46</tt> <tt class="py-line"> <tt id="link-7" class="py-name"><a title="archive.builders._logger |
|
131 archive.mappers._logger |
|
132 archive.tools._logger |
|
133 ats3._logger |
|
134 ats3.aste._logger |
|
135 ats3.dropgenerator._logger |
|
136 ats3.parsers._logger |
|
137 ats3.testconfigurator._logger |
|
138 build.io._logger |
|
139 build.model._logger |
|
140 ccm._logger |
|
141 ccm.extra._logger |
|
142 comments._logger |
|
143 configuration._logger |
|
144 configuration_model._logger |
|
145 delta_zip._logger |
|
146 integration.quality._logger |
|
147 nokia.gscm._logger |
|
148 nokia.nokiaccm._logger |
|
149 pathaddition.match._logger |
|
150 preparation._logger |
|
151 symbian.log._logger |
|
152 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-7', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"Running command: %s"</tt> <tt class="py-op">%</tt> <tt id="link-8" class="py-name"><a title="sysdef.api.BuildLayer.command |
|
153 sysdef.api.SpecialInstruction.command" class="py-name" href="#" onclick="return doclink('link-8', 'command', 'link-1');">command</a></tt><tt class="py-op">)</tt> </tt> |
|
154 <a name="L47"></a><tt class="py-lineno">47</tt> <tt class="py-line"> <tt class="py-op">(</tt><tt id="link-9" class="py-name"><a title="ccm.Result.output |
|
155 helium.output" class="py-name" href="#" onclick="return doclink('link-9', 'output', 'link-2');">output</a></tt><tt class="py-op">,</tt> <tt class="py-name">status</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt id="link-10" class="py-name" targets="Function ccm._execute()=ccm-module.html#_execute,Function nokia.gscm._execute()=nokia.gscm-module.html#_execute"><a title="ccm._execute |
|
156 nokia.gscm._execute" class="py-name" href="#" onclick="return doclink('link-10', '_execute', 'link-10');">_execute</a></tt><tt class="py-op">(</tt><tt id="link-11" class="py-name"><a title="sysdef.api.BuildLayer.command |
|
157 sysdef.api.SpecialInstruction.command" class="py-name" href="#" onclick="return doclink('link-11', 'command', 'link-1');">command</a></tt><tt class="py-op">)</tt> </tt> |
|
158 <a name="L48"></a><tt class="py-lineno">48</tt> <tt class="py-line"> <tt id="link-12" class="py-name"><a title="archive.builders._logger |
|
159 archive.mappers._logger |
|
160 archive.tools._logger |
|
161 ats3._logger |
|
162 ats3.aste._logger |
|
163 ats3.dropgenerator._logger |
|
164 ats3.parsers._logger |
|
165 ats3.testconfigurator._logger |
|
166 build.io._logger |
|
167 build.model._logger |
|
168 ccm._logger |
|
169 ccm.extra._logger |
|
170 comments._logger |
|
171 configuration._logger |
|
172 configuration_model._logger |
|
173 delta_zip._logger |
|
174 integration.quality._logger |
|
175 nokia.gscm._logger |
|
176 nokia.nokiaccm._logger |
|
177 pathaddition.match._logger |
|
178 preparation._logger |
|
179 symbian.log._logger |
|
180 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-12', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"Status: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">status</tt><tt class="py-op">)</tt> </tt> |
|
181 <a name="L49"></a><tt class="py-lineno">49</tt> <tt class="py-line"> <tt id="link-13" class="py-name"><a title="archive.builders._logger |
|
182 archive.mappers._logger |
|
183 archive.tools._logger |
|
184 ats3._logger |
|
185 ats3.aste._logger |
|
186 ats3.dropgenerator._logger |
|
187 ats3.parsers._logger |
|
188 ats3.testconfigurator._logger |
|
189 build.io._logger |
|
190 build.model._logger |
|
191 ccm._logger |
|
192 ccm.extra._logger |
|
193 comments._logger |
|
194 configuration._logger |
|
195 configuration_model._logger |
|
196 delta_zip._logger |
|
197 integration.quality._logger |
|
198 nokia.gscm._logger |
|
199 nokia.nokiaccm._logger |
|
200 pathaddition.match._logger |
|
201 preparation._logger |
|
202 symbian.log._logger |
|
203 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-13', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"Output: %s"</tt> <tt class="py-op">%</tt> <tt id="link-14" class="py-name"><a title="ccm.Result.output |
|
204 helium.output" class="py-name" href="#" onclick="return doclink('link-14', 'output', 'link-2');">output</a></tt><tt class="py-op">)</tt> </tt> |
|
205 <a name="L50"></a><tt class="py-lineno">50</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">status</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt> <tt class="py-keyword">or</tt> <tt class="py-name">status</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-op">(</tt><tt class="py-string">"Can't locate"</tt> <tt class="py-keyword">in</tt> <tt id="link-15" class="py-name"><a title="ccm.Result.output |
|
206 helium.output" class="py-name" href="#" onclick="return doclink('link-15', 'output', 'link-2');">output</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
207 <a name="L51"></a><tt class="py-lineno">51</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-16" class="py-name"><a title="ccm.Result.output |
|
208 helium.output" class="py-name" href="#" onclick="return doclink('link-16', 'output', 'link-2');">output</a></tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> |
|
209 <a name="L52"></a><tt class="py-lineno">52</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-string">'HLM_SUBCON'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">:</tt> </tt> |
|
210 <a name="L53"></a><tt class="py-lineno">53</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">"Error retrieving get_db_path info for '%s' database.\nOUTPUT:%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">dbname</tt><tt class="py-op">,</tt> <tt id="link-17" class="py-name"><a title="ccm.Result.output |
|
211 helium.output" class="py-name" href="#" onclick="return doclink('link-17', 'output', 'link-2');">output</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 class="py-op">)</tt> </tt> |
|
212 <a name="L54"></a><tt class="py-lineno">54</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt> |
|
213 </div><a name="L55"></a><tt class="py-lineno">55</tt> <tt class="py-line"> </tt> |
|
214 <a name="get_db_path"></a><div id="get_db_path-def"><a name="L56"></a><tt class="py-lineno">56</tt> <a class="py-toggle" href="#" id="get_db_path-toggle" onclick="return toggle('get_db_path');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="nokia.gscm-module.html#get_db_path">get_db_path</a><tt class="py-op">(</tt><tt class="py-param">dbname</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
215 </div><div id="get_db_path-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_db_path-expanded"><a name="L57"></a><tt class="py-lineno">57</tt> <tt class="py-line"> <tt class="py-docstring">""" Returns the database path for dbname database. """</tt> </tt> |
|
216 <a name="L58"></a><tt class="py-lineno">58</tt> <tt class="py-line"> <tt id="link-18" class="py-name"><a title="archive.builders._logger |
|
217 archive.mappers._logger |
|
218 archive.tools._logger |
|
219 ats3._logger |
|
220 ats3.aste._logger |
|
221 ats3.dropgenerator._logger |
|
222 ats3.parsers._logger |
|
223 ats3.testconfigurator._logger |
|
224 build.io._logger |
|
225 build.model._logger |
|
226 ccm._logger |
|
227 ccm.extra._logger |
|
228 comments._logger |
|
229 configuration._logger |
|
230 configuration_model._logger |
|
231 delta_zip._logger |
|
232 integration.quality._logger |
|
233 nokia.gscm._logger |
|
234 nokia.nokiaccm._logger |
|
235 pathaddition.match._logger |
|
236 preparation._logger |
|
237 symbian.log._logger |
|
238 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-18', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"get_db_path: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
239 <a name="L59"></a><tt class="py-lineno">59</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-19" class="py-name" targets="Function nokia.gscm.__get_gscm_info()=nokia.gscm-module.html#__get_gscm_info"><a title="nokia.gscm.__get_gscm_info" class="py-name" href="#" onclick="return doclink('link-19', '__get_gscm_info', 'link-19');">__get_gscm_info</a></tt><tt class="py-op">(</tt><tt class="py-string">'get_db_path'</tt><tt class="py-op">,</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
240 </div><a name="L60"></a><tt class="py-lineno">60</tt> <tt class="py-line"> </tt> |
|
241 <a name="L61"></a><tt class="py-lineno">61</tt> <tt class="py-line"> </tt> |
|
242 <a name="get_router_address"></a><div id="get_router_address-def"><a name="L62"></a><tt class="py-lineno">62</tt> <a class="py-toggle" href="#" id="get_router_address-toggle" onclick="return toggle('get_router_address');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="nokia.gscm-module.html#get_router_address">get_router_address</a><tt class="py-op">(</tt><tt class="py-param">dbname</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
243 </div><div id="get_router_address-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_router_address-expanded"><a name="L63"></a><tt class="py-lineno">63</tt> <tt class="py-line"> <tt class="py-docstring">""" Returns the database router address for dbname database. """</tt> </tt> |
|
244 <a name="L64"></a><tt class="py-lineno">64</tt> <tt class="py-line"> <tt id="link-20" class="py-name"><a title="archive.builders._logger |
|
245 archive.mappers._logger |
|
246 archive.tools._logger |
|
247 ats3._logger |
|
248 ats3.aste._logger |
|
249 ats3.dropgenerator._logger |
|
250 ats3.parsers._logger |
|
251 ats3.testconfigurator._logger |
|
252 build.io._logger |
|
253 build.model._logger |
|
254 ccm._logger |
|
255 ccm.extra._logger |
|
256 comments._logger |
|
257 configuration._logger |
|
258 configuration_model._logger |
|
259 delta_zip._logger |
|
260 integration.quality._logger |
|
261 nokia.gscm._logger |
|
262 nokia.nokiaccm._logger |
|
263 pathaddition.match._logger |
|
264 preparation._logger |
|
265 symbian.log._logger |
|
266 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-20', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"get_router_address: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
267 <a name="L65"></a><tt class="py-lineno">65</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-21" class="py-name"><a title="nokia.gscm.__get_gscm_info" class="py-name" href="#" onclick="return doclink('link-21', '__get_gscm_info', 'link-19');">__get_gscm_info</a></tt><tt class="py-op">(</tt><tt class="py-string">'get_router_address'</tt><tt class="py-op">,</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
268 </div><a name="L66"></a><tt class="py-lineno">66</tt> <tt class="py-line"> </tt> |
|
269 <a name="L67"></a><tt class="py-lineno">67</tt> <tt class="py-line"> </tt> |
|
270 <a name="get_engine_host"></a><div id="get_engine_host-def"><a name="L68"></a><tt class="py-lineno">68</tt> <a class="py-toggle" href="#" id="get_engine_host-toggle" onclick="return toggle('get_engine_host');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="nokia.gscm-module.html#get_engine_host">get_engine_host</a><tt class="py-op">(</tt><tt class="py-param">dbname</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> |
|
271 </div><div id="get_engine_host-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_engine_host-expanded"><a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"> <tt class="py-docstring">""" Returns the database engine host for dbname database. """</tt> </tt> |
|
272 <a name="L70"></a><tt class="py-lineno">70</tt> <tt class="py-line"> <tt id="link-22" class="py-name"><a title="archive.builders._logger |
|
273 archive.mappers._logger |
|
274 archive.tools._logger |
|
275 ats3._logger |
|
276 ats3.aste._logger |
|
277 ats3.dropgenerator._logger |
|
278 ats3.parsers._logger |
|
279 ats3.testconfigurator._logger |
|
280 build.io._logger |
|
281 build.model._logger |
|
282 ccm._logger |
|
283 ccm.extra._logger |
|
284 comments._logger |
|
285 configuration._logger |
|
286 configuration_model._logger |
|
287 delta_zip._logger |
|
288 integration.quality._logger |
|
289 nokia.gscm._logger |
|
290 nokia.nokiaccm._logger |
|
291 pathaddition.match._logger |
|
292 preparation._logger |
|
293 symbian.log._logger |
|
294 sysdef.api._logger" class="py-name" href="#" onclick="return doclink('link-22', '_logger', 'link-0');">_logger</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"get_engine_host: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
295 <a name="L71"></a><tt class="py-lineno">71</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-23" class="py-name"><a title="nokia.gscm.__get_gscm_info" class="py-name" href="#" onclick="return doclink('link-23', '__get_gscm_info', 'link-19');">__get_gscm_info</a></tt><tt class="py-op">(</tt><tt class="py-string">'get_engine_host'</tt><tt class="py-op">,</tt> <tt class="py-name">dbname</tt><tt class="py-op">)</tt> </tt> |
|
296 </div><a name="L72"></a><tt class="py-lineno">72</tt> <tt class="py-line"> </tt><script type="text/javascript"> |
|
297 <!-- |
|
298 expandto(location.href); |
|
299 // --> |
|
300 </script> |
|
301 </pre> |
|
302 <br /> |
|
303 <!-- ==================== NAVIGATION BAR ==================== --> |
|
304 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
305 bgcolor="#a0c0ff" cellspacing="0"> |
|
306 <tr valign="middle"> |
|
307 |
|
308 <!-- Tree link --> |
|
309 <th> <a |
|
310 href="module-tree.html">Trees</a> </th> |
|
311 |
|
312 <!-- Index link --> |
|
313 <th> <a |
|
314 href="identifier-index.html">Indices</a> </th> |
|
315 |
|
316 <!-- Help link --> |
|
317 <th> <a |
|
318 href="help.html">Help</a> </th> |
|
319 |
|
320 <th class="navbar" width="100%"></th> |
|
321 </tr> |
|
322 </table> |
|
323 <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
|
324 <tr> |
|
325 <td align="left" class="footer"> |
|
326 Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:21 2009 |
|
327 </td> |
|
328 <td align="right" class="footer"> |
|
329 <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> |
|
330 </td> |
|
331 </tr> |
|
332 </table> |
|
333 |
|
334 <script type="text/javascript"> |
|
335 <!-- |
|
336 // Private objects are initially displayed (because if |
|
337 // javascript is turned off then we want them to be |
|
338 // visible); but by default, we want to hide them. So hide |
|
339 // them unless we have a cookie that says to show them. |
|
340 checkCookie() |
|
341 // --> |
|
342 </script> |
|
343 |
|
344 </body> |
|
345 </html> |