doc/api/python/archive.mappers.DefaultMapper-class.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>archive.mappers.DefaultMapper</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         <a href="archive-module.html">Package&nbsp;archive</a> ::
       
    38         <a href="archive.mappers-module.html">Module&nbsp;mappers</a> ::
       
    39         Class&nbsp;DefaultMapper
       
    40       </span>
       
    41     </td>
       
    42     <td>
       
    43       <table cellpadding="0" cellspacing="0">
       
    44         <!-- hide/show private -->
       
    45         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
       
    46     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
       
    47         <tr><td align="right"><span class="options"
       
    48             >[<a href="frames.html" target="_top">frames</a
       
    49             >]&nbsp;|&nbsp;<a href="archive.mappers.DefaultMapper-class.html"
       
    50             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    51       </table>
       
    52     </td>
       
    53   </tr>
       
    54 </table>
       
    55 <!-- ==================== CLASS DESCRIPTION ==================== -->
       
    56 <h1 class="epydoc">Class DefaultMapper</h1><span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper">source&nbsp;code</a></span><br /><br />
       
    57 <pre class="base-tree">
       
    58 object --+    
       
    59          |    
       
    60     <a href="archive.mappers.Mapper-class.html">Mapper</a> --+
       
    61              |
       
    62             <strong class="uidshort">DefaultMapper</strong>
       
    63 </pre>
       
    64 
       
    65 <hr />
       
    66 <p>The default mapper. It splits the content based on size characteristics.</p>
       
    67 <p>'the max.files.per.archive' and 'max.uncompressed.size' properties define how the input files
       
    68 are split between a number of part zips.</p><br /><br />
       
    69 
       
    70 <!-- ==================== INSTANCE METHODS ==================== -->
       
    71 <a name="section-InstanceMethods"></a>
       
    72 <table class="summary" border="1" cellpadding="3"
       
    73        cellspacing="0" width="100%" bgcolor="white">
       
    74 <tr bgcolor="#70b0f0" class="table-header">
       
    75   <td colspan="2" class="table-header">
       
    76     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
    77       <tr valign="top">
       
    78         <td align="left"><span class="table-header">Instance Methods</span></td>
       
    79         <td align="right" valign="top"
       
    80          ><span class="options">[<a href="#section-InstanceMethods"
       
    81          class="privatelink" onclick="toggle_private();"
       
    82          >hide private</a>]</span></td>
       
    83       </tr>
       
    84     </table>
       
    85   </td>
       
    86 </tr>
       
    87 <tr>
       
    88     <td width="15%" align="right" valign="top" class="summary">
       
    89       <span class="summary-type">&nbsp;</span>
       
    90     </td><td class="summary">
       
    91       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
    92         <tr>
       
    93           <td><span class="summary-sig"><a href="archive.mappers.DefaultMapper-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
       
    94         <span class="summary-sig-arg">config</span>,
       
    95         <span class="summary-sig-arg">archiver</span>)</span><br />
       
    96       Initialization.</td>
       
    97           <td align="right" valign="top">
       
    98             <span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper.__init__">source&nbsp;code</a></span>
       
    99             
       
   100           </td>
       
   101         </tr>
       
   102       </table>
       
   103       
       
   104     </td>
       
   105   </tr>
       
   106 <tr>
       
   107     <td width="15%" align="right" valign="top" class="summary">
       
   108       <span class="summary-type">&nbsp;</span>
       
   109     </td><td class="summary">
       
   110       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   111         <tr>
       
   112           <td><span class="summary-sig"><a href="archive.mappers.DefaultMapper-class.html#create_commands" class="summary-sig-name">create_commands</a>(<span class="summary-sig-arg">self</span>,
       
   113         <span class="summary-sig-arg">manifest</span>)</span><br />
       
   114       Return a list of command lists.</td>
       
   115           <td align="right" valign="top">
       
   116             <span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper.create_commands">source&nbsp;code</a></span>
       
   117             
       
   118           </td>
       
   119         </tr>
       
   120       </table>
       
   121       
       
   122     </td>
       
   123   </tr>
       
   124 <tr class="private">
       
   125     <td width="15%" align="right" valign="top" class="summary">
       
   126       <span class="summary-type">&nbsp;</span>
       
   127     </td><td class="summary">
       
   128       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   129         <tr>
       
   130           <td><span class="summary-sig"><a name="_split_manifest_file"></a><span class="summary-sig-name">_split_manifest_file</span>(<span class="summary-sig-arg">self</span>,
       
   131         <span class="summary-sig-arg">name</span>,
       
   132         <span class="summary-sig-arg">manifest_file_path</span>)</span><br />
       
   133       This method return a list of files that contain the content of the zip parts to create.</td>
       
   134           <td align="right" valign="top">
       
   135             <span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper._split_manifest_file">source&nbsp;code</a></span>
       
   136             
       
   137           </td>
       
   138         </tr>
       
   139       </table>
       
   140       
       
   141     </td>
       
   142   </tr>
       
   143   <tr>
       
   144     <td colspan="2" class="summary">
       
   145     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="archive.mappers.Mapper-class.html">Mapper</a></code></b>:
       
   146       <code><a href="archive.mappers.Mapper-class.html#declare_package">declare_package</a></code>
       
   147       </p>
       
   148     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   149       <code>__delattr__</code>,
       
   150       <code>__getattribute__</code>,
       
   151       <code>__hash__</code>,
       
   152       <code>__new__</code>,
       
   153       <code>__reduce__</code>,
       
   154       <code>__reduce_ex__</code>,
       
   155       <code>__repr__</code>,
       
   156       <code>__setattr__</code>,
       
   157       <code>__str__</code>
       
   158       </p>
       
   159     </td>
       
   160   </tr>
       
   161 </table>
       
   162 <!-- ==================== PROPERTIES ==================== -->
       
   163 <a name="section-Properties"></a>
       
   164 <table class="summary" border="1" cellpadding="3"
       
   165        cellspacing="0" width="100%" bgcolor="white">
       
   166 <tr bgcolor="#70b0f0" class="table-header">
       
   167   <td colspan="2" class="table-header">
       
   168     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   169       <tr valign="top">
       
   170         <td align="left"><span class="table-header">Properties</span></td>
       
   171         <td align="right" valign="top"
       
   172          ><span class="options">[<a href="#section-Properties"
       
   173          class="privatelink" onclick="toggle_private();"
       
   174          >hide private</a>]</span></td>
       
   175       </tr>
       
   176     </table>
       
   177   </td>
       
   178 </tr>
       
   179   <tr>
       
   180     <td colspan="2" class="summary">
       
   181     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   182       <code>__class__</code>
       
   183       </p>
       
   184     </td>
       
   185   </tr>
       
   186 </table>
       
   187 <!-- ==================== METHOD DETAILS ==================== -->
       
   188 <a name="section-MethodDetails"></a>
       
   189 <table class="details" border="1" cellpadding="3"
       
   190        cellspacing="0" width="100%" bgcolor="white">
       
   191 <tr bgcolor="#70b0f0" class="table-header">
       
   192   <td colspan="2" class="table-header">
       
   193     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   194       <tr valign="top">
       
   195         <td align="left"><span class="table-header">Method Details</span></td>
       
   196         <td align="right" valign="top"
       
   197          ><span class="options">[<a href="#section-MethodDetails"
       
   198          class="privatelink" onclick="toggle_private();"
       
   199          >hide private</a>]</span></td>
       
   200       </tr>
       
   201     </table>
       
   202   </td>
       
   203 </tr>
       
   204 </table>
       
   205 <a name="__init__"></a>
       
   206 <div>
       
   207 <table class="details" border="1" cellpadding="3"
       
   208        cellspacing="0" width="100%" bgcolor="white">
       
   209 <tr><td>
       
   210   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   211   <tr valign="top"><td>
       
   212   <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
       
   213         <span class="sig-arg">config</span>,
       
   214         <span class="sig-arg">archiver</span>)</span>
       
   215     <br /><em class="fname">(Constructor)</em>
       
   216   </h3>
       
   217   </td><td align="right" valign="top"
       
   218     ><span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper.__init__">source&nbsp;code</a></span>&nbsp;
       
   219     </td>
       
   220   </table>
       
   221   
       
   222   Initialization.
       
   223   <dl class="fields">
       
   224     <dt>Overrides:
       
   225       <a href="archive.mappers.Mapper-class.html#__init__">Mapper.__init__</a>
       
   226     </dt>
       
   227   </dl>
       
   228 </td></tr></table>
       
   229 </div>
       
   230 <a name="create_commands"></a>
       
   231 <div>
       
   232 <table class="details" border="1" cellpadding="3"
       
   233        cellspacing="0" width="100%" bgcolor="white">
       
   234 <tr><td>
       
   235   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   236   <tr valign="top"><td>
       
   237   <h3 class="epydoc"><span class="sig"><span class="sig-name">create_commands</span>(<span class="sig-arg">self</span>,
       
   238         <span class="sig-arg">manifest</span>)</span>
       
   239   </h3>
       
   240   </td><td align="right" valign="top"
       
   241     ><span class="codelink"><a href="archive.mappers-pysrc.html#DefaultMapper.create_commands">source&nbsp;code</a></span>&nbsp;
       
   242     </td>
       
   243   </table>
       
   244   
       
   245   Return a list of command lists.
       
   246   <dl class="fields">
       
   247     <dt>Overrides:
       
   248       <a href="archive.mappers.Mapper-class.html#create_commands">Mapper.create_commands</a>
       
   249     </dt>
       
   250   </dl>
       
   251 </td></tr></table>
       
   252 </div>
       
   253 <br />
       
   254 <!-- ==================== NAVIGATION BAR ==================== -->
       
   255 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   256        bgcolor="#a0c0ff" cellspacing="0">
       
   257   <tr valign="middle">
       
   258 
       
   259   <!-- Tree link -->
       
   260       <th>&nbsp;&nbsp;&nbsp;<a
       
   261         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   262 
       
   263   <!-- Index link -->
       
   264       <th>&nbsp;&nbsp;&nbsp;<a
       
   265         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   266 
       
   267   <!-- Help link -->
       
   268       <th>&nbsp;&nbsp;&nbsp;<a
       
   269         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   270 
       
   271       <th class="navbar" width="100%"></th>
       
   272   </tr>
       
   273 </table>
       
   274 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   275   <tr>
       
   276     <td align="left" class="footer">
       
   277     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:16 2009
       
   278     </td>
       
   279     <td align="right" class="footer">
       
   280       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   281     </td>
       
   282   </tr>
       
   283 </table>
       
   284 
       
   285 <script type="text/javascript">
       
   286   <!--
       
   287   // Private objects are initially displayed (because if
       
   288   // javascript is turned off then we want them to be
       
   289   // visible); but by default, we want to hide them.  So hide
       
   290   // them unless we have a cookie that says to show them.
       
   291   checkCookie()
       
   292   // -->
       
   293 </script>
       
   294   
       
   295 </body>
       
   296 </html>