~ubuntu-branches/ubuntu/lucid/phatch/lucid

« back to all changes in this revision

Viewing changes to docs/build/html/lib.system.html

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort, Stani M, Emilio Pozuelo Monfort
  • Date: 2010-03-12 14:04:02 UTC
  • mfrom: (1.1.11) (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20100312140402-o6g6terpbqksf1dw
Tags: 0.2.7-1
[ Stani M ]
* Upstream bugfix release (Closes LP: #472978, #487435, #516763, #516858, 
  #525999, #526047, #526235, #526237, #526489, #529343, #529429, #525831, 
  #526237, #529544, #529605, #531375, #531705, #531728, #532346, #532356, 
  #532540, #532544, #533068, #534723, #534834, #534835, #535189, #535192,
  #536820)
* debian/control: Add python-nautilus to phatch-nautilus's Depends

[ Emilio Pozuelo Monfort ]
* debian/rules:
  - Adapt for the upstream changes.
* debian/copyright:
  - Updated for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
 
401
401
<dl class="function">
402
402
<dt id="lib.system.shell">
403
 
<tt class="descclassname">lib.system.</tt><tt class="descname">shell</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#lib.system.shell" title="Permalink to this definition">¶</a></dt>
 
403
<tt class="descclassname">lib.system.</tt><tt class="descname">shell</tt><big>(</big><em>*args</em>, <em>**options</em><big>)</big><a class="headerlink" href="#lib.system.shell" title="Permalink to this definition">¶</a></dt>
404
404
<dd><p>Runs a shell command and captures the output.</p>
405
405
<table class="docutils field-list" frame="void" rules="none">
406
406
<col class="field-name" />
414
414
</tr>
415
415
</tbody>
416
416
</table>
417
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">shell</span><span class="p">(</span><span class="s">&#39;echo world&#39;</span><span class="p">)</span>
 
417
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">shell</span><span class="p">(</span><span class="s">&#39;echo world&#39;</span><span class="p">,</span> <span class="n">shell</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
 
418
<span class="go">(&#39;world\n&#39;, &#39;&#39;)</span>
 
419
</pre></div>
 
420
</div>
 
421
</dd></dl>
 
422
 
 
423
<dl class="function">
 
424
<dt id="lib.system.shell_cache">
 
425
<tt class="descclassname">lib.system.</tt><tt class="descname">shell_cache</tt><big>(</big><em>args</em>, <em>cache=''</em>, <em>key=None</em>, <em>validate=None</em>, <em>**options</em><big>)</big><a class="headerlink" href="#lib.system.shell_cache" title="Permalink to this definition">¶</a></dt>
 
426
<dd><p>Runs a shell command and captures the output. It uses a caching system
 
427
so that cached results don&#8217;t need to run a subprocess anymore. The results
 
428
are cached by sys.platform</p>
 
429
<table class="docutils field-list" frame="void" rules="none">
 
430
<col class="field-name" />
 
431
<col class="field-body" />
 
432
<tbody valign="top">
 
433
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
 
434
<li><em>args</em> (tuple of strings) &#8211; the command to be executed in the shell</li>
 
435
<li><em>cache</em> (string) &#8211; the filename of the cache file</li>
 
436
<li><em>validate</em> &#8211; a validate (eg mtime) to validate the cache result</li>
 
437
</ul>
 
438
</td>
 
439
</tr>
 
440
<tr class="field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">stdout and stdout</p>
 
441
</td>
 
442
</tr>
 
443
<tr class="field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">typle of strings</p>
 
444
</td>
 
445
</tr>
 
446
</tbody>
 
447
</table>
 
448
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">shell</span><span class="p">(</span><span class="s">&#39;echo world&#39;</span><span class="p">,</span> <span class="n">shell</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
418
449
<span class="go">(&#39;world\n&#39;, &#39;&#39;)</span>
419
450
</pre></div>
420
451
</div>
422
453
 
423
454
<dl class="function">
424
455
<dt id="lib.system.shell_returncode">
425
 
<tt class="descclassname">lib.system.</tt><tt class="descname">shell_returncode</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#lib.system.shell_returncode" title="Permalink to this definition">¶</a></dt>
 
456
<tt class="descclassname">lib.system.</tt><tt class="descname">shell_returncode</tt><big>(</big><em>*args</em>, <em>**options</em><big>)</big><a class="headerlink" href="#lib.system.shell_returncode" title="Permalink to this definition">¶</a></dt>
426
457
<dd><p>Runs a shell command and returns it&#8217;s exit code.</p>
427
458
<table class="docutils field-list" frame="void" rules="none">
428
459
<col class="field-name" />