|
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.PolicyMapper</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="archive-module.html">Package archive</a> :: |
|
38 <a href="archive.mappers-module.html">Module mappers</a> :: |
|
39 Class PolicyMapper |
|
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 private</a>]</span></td></tr> |
|
47 <tr><td align="right"><span class="options" |
|
48 >[<a href="frames.html" target="_top">frames</a |
|
49 >] | <a href="archive.mappers.PolicyMapper-class.html" |
|
50 target="_top">no frames</a>]</span></td></tr> |
|
51 </table> |
|
52 </td> |
|
53 </tr> |
|
54 </table> |
|
55 <!-- ==================== CLASS DESCRIPTION ==================== --> |
|
56 <h1 class="epydoc">Class PolicyMapper</h1><span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper">source 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">PolicyMapper</strong> |
|
63 </pre> |
|
64 |
|
65 <hr /> |
|
66 <p>Implements a policy content mapper.</p> |
|
67 <p>It transforms a list of files into a list of commands with their inputs. |
|
68 All files with policy 0 will be under the main archive. |
|
69 All other files will get backed up by policy and then store into an second archive.</p><br /><br /> |
|
70 |
|
71 <!-- ==================== INSTANCE METHODS ==================== --> |
|
72 <a name="section-InstanceMethods"></a> |
|
73 <table class="summary" border="1" cellpadding="3" |
|
74 cellspacing="0" width="100%" bgcolor="white"> |
|
75 <tr bgcolor="#70b0f0" class="table-header"> |
|
76 <td colspan="2" class="table-header"> |
|
77 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
78 <tr valign="top"> |
|
79 <td align="left"><span class="table-header">Instance Methods</span></td> |
|
80 <td align="right" valign="top" |
|
81 ><span class="options">[<a href="#section-InstanceMethods" |
|
82 class="privatelink" onclick="toggle_private();" |
|
83 >hide private</a>]</span></td> |
|
84 </tr> |
|
85 </table> |
|
86 </td> |
|
87 </tr> |
|
88 <tr> |
|
89 <td width="15%" align="right" valign="top" class="summary"> |
|
90 <span class="summary-type"> </span> |
|
91 </td><td class="summary"> |
|
92 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
93 <tr> |
|
94 <td><span class="summary-sig"><a href="archive.mappers.PolicyMapper-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, |
|
95 <span class="summary-sig-arg">config</span>, |
|
96 <span class="summary-sig-arg">archiver</span>)</span><br /> |
|
97 Initialization.</td> |
|
98 <td align="right" valign="top"> |
|
99 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.__init__">source code</a></span> |
|
100 |
|
101 </td> |
|
102 </tr> |
|
103 </table> |
|
104 |
|
105 </td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td width="15%" align="right" valign="top" class="summary"> |
|
109 <span class="summary-type"> </span> |
|
110 </td><td class="summary"> |
|
111 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
112 <tr> |
|
113 <td><span class="summary-sig"><a name="load_policy_binary"></a><span class="summary-sig-name">load_policy_binary</span>(<span class="summary-sig-arg">self</span>, |
|
114 <span class="summary-sig-arg">csvfile</span>, |
|
115 <span class="summary-sig-arg">column</span>=<span class="summary-sig-default">1</span>)</span><br /> |
|
116 Loads the binary IDs from the CSV file.</td> |
|
117 <td align="right" valign="top"> |
|
118 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.load_policy_binary">source code</a></span> |
|
119 |
|
120 </td> |
|
121 </tr> |
|
122 </table> |
|
123 |
|
124 </td> |
|
125 </tr> |
|
126 <tr> |
|
127 <td width="15%" align="right" valign="top" class="summary"> |
|
128 <span class="summary-type"> </span> |
|
129 </td><td class="summary"> |
|
130 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
131 <tr> |
|
132 <td><span class="summary-sig"><a name="zip2zip"></a><span class="summary-sig-name">zip2zip</span>(<span class="summary-sig-arg">self</span>)</span><br /> |
|
133 Should the non public zip be zipped up under a specific zip.</td> |
|
134 <td align="right" valign="top"> |
|
135 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.zip2zip">source code</a></span> |
|
136 |
|
137 </td> |
|
138 </tr> |
|
139 </table> |
|
140 |
|
141 </td> |
|
142 </tr> |
|
143 <tr> |
|
144 <td width="15%" align="right" valign="top" class="summary"> |
|
145 <span class="summary-type"> </span> |
|
146 </td><td class="summary"> |
|
147 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
148 <tr> |
|
149 <td><span class="summary-sig"><a href="archive.mappers.PolicyMapper-class.html#create_commands" class="summary-sig-name">create_commands</a>(<span class="summary-sig-arg">self</span>, |
|
150 <span class="summary-sig-arg">manifest</span>)</span><br /> |
|
151 Generates a list of build commands.</td> |
|
152 <td align="right" valign="top"> |
|
153 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.create_commands">source code</a></span> |
|
154 |
|
155 </td> |
|
156 </tr> |
|
157 </table> |
|
158 |
|
159 </td> |
|
160 </tr> |
|
161 <tr> |
|
162 <td width="15%" align="right" valign="top" class="summary"> |
|
163 <span class="summary-type"> </span> |
|
164 </td><td class="summary"> |
|
165 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
166 <tr> |
|
167 <td><span class="summary-sig"><a name="get_dir_policy"></a><span class="summary-sig-name">get_dir_policy</span>(<span class="summary-sig-arg">self</span>, |
|
168 <span class="summary-sig-arg">dirname</span>)</span><br /> |
|
169 Get policy value for a specific directory.</td> |
|
170 <td align="right" valign="top"> |
|
171 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.get_dir_policy">source code</a></span> |
|
172 |
|
173 </td> |
|
174 </tr> |
|
175 </table> |
|
176 |
|
177 </td> |
|
178 </tr> |
|
179 <tr> |
|
180 <td width="15%" align="right" valign="top" class="summary"> |
|
181 <span class="summary-type"> </span> |
|
182 </td><td class="summary"> |
|
183 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
184 <tr> |
|
185 <td><span class="summary-sig"><a name="get_policy_filenames"></a><span class="summary-sig-name">get_policy_filenames</span>(<span class="summary-sig-arg">self</span>)</span><br /> |
|
186 Returns the list of potential policy filenames.</td> |
|
187 <td align="right" valign="top"> |
|
188 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.get_policy_filenames">source code</a></span> |
|
189 |
|
190 </td> |
|
191 </tr> |
|
192 </table> |
|
193 |
|
194 </td> |
|
195 </tr> |
|
196 <tr class="private"> |
|
197 <td width="15%" align="right" valign="top" class="summary"> |
|
198 <span class="summary-type"> </span> |
|
199 </td><td class="summary"> |
|
200 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
201 <tr> |
|
202 <td><span class="summary-sig"><a name="_sort_by_policy"></a><span class="summary-sig-name">_sort_by_policy</span>(<span class="summary-sig-arg">self</span>, |
|
203 <span class="summary-sig-arg">filename</span>)</span><br /> |
|
204 Store the input file sorted by its policy number.</td> |
|
205 <td align="right" valign="top"> |
|
206 <span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper._sort_by_policy">source code</a></span> |
|
207 |
|
208 </td> |
|
209 </tr> |
|
210 </table> |
|
211 |
|
212 </td> |
|
213 </tr> |
|
214 <tr> |
|
215 <td colspan="2" class="summary"> |
|
216 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="archive.mappers.Mapper-class.html">Mapper</a></code></b>: |
|
217 <code><a href="archive.mappers.Mapper-class.html#declare_package">declare_package</a></code> |
|
218 </p> |
|
219 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
220 <code>__delattr__</code>, |
|
221 <code>__getattribute__</code>, |
|
222 <code>__hash__</code>, |
|
223 <code>__new__</code>, |
|
224 <code>__reduce__</code>, |
|
225 <code>__reduce_ex__</code>, |
|
226 <code>__repr__</code>, |
|
227 <code>__setattr__</code>, |
|
228 <code>__str__</code> |
|
229 </p> |
|
230 </td> |
|
231 </tr> |
|
232 </table> |
|
233 <!-- ==================== PROPERTIES ==================== --> |
|
234 <a name="section-Properties"></a> |
|
235 <table class="summary" border="1" cellpadding="3" |
|
236 cellspacing="0" width="100%" bgcolor="white"> |
|
237 <tr bgcolor="#70b0f0" class="table-header"> |
|
238 <td colspan="2" class="table-header"> |
|
239 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
240 <tr valign="top"> |
|
241 <td align="left"><span class="table-header">Properties</span></td> |
|
242 <td align="right" valign="top" |
|
243 ><span class="options">[<a href="#section-Properties" |
|
244 class="privatelink" onclick="toggle_private();" |
|
245 >hide private</a>]</span></td> |
|
246 </tr> |
|
247 </table> |
|
248 </td> |
|
249 </tr> |
|
250 <tr> |
|
251 <td colspan="2" class="summary"> |
|
252 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
253 <code>__class__</code> |
|
254 </p> |
|
255 </td> |
|
256 </tr> |
|
257 </table> |
|
258 <!-- ==================== METHOD DETAILS ==================== --> |
|
259 <a name="section-MethodDetails"></a> |
|
260 <table class="details" border="1" cellpadding="3" |
|
261 cellspacing="0" width="100%" bgcolor="white"> |
|
262 <tr bgcolor="#70b0f0" class="table-header"> |
|
263 <td colspan="2" class="table-header"> |
|
264 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
265 <tr valign="top"> |
|
266 <td align="left"><span class="table-header">Method Details</span></td> |
|
267 <td align="right" valign="top" |
|
268 ><span class="options">[<a href="#section-MethodDetails" |
|
269 class="privatelink" onclick="toggle_private();" |
|
270 >hide private</a>]</span></td> |
|
271 </tr> |
|
272 </table> |
|
273 </td> |
|
274 </tr> |
|
275 </table> |
|
276 <a name="__init__"></a> |
|
277 <div> |
|
278 <table class="details" border="1" cellpadding="3" |
|
279 cellspacing="0" width="100%" bgcolor="white"> |
|
280 <tr><td> |
|
281 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
282 <tr valign="top"><td> |
|
283 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, |
|
284 <span class="sig-arg">config</span>, |
|
285 <span class="sig-arg">archiver</span>)</span> |
|
286 <br /><em class="fname">(Constructor)</em> |
|
287 </h3> |
|
288 </td><td align="right" valign="top" |
|
289 ><span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.__init__">source code</a></span> |
|
290 </td> |
|
291 </table> |
|
292 |
|
293 Initialization. |
|
294 <dl class="fields"> |
|
295 <dt>Overrides: |
|
296 <a href="archive.mappers.Mapper-class.html#__init__">Mapper.__init__</a> |
|
297 </dt> |
|
298 </dl> |
|
299 </td></tr></table> |
|
300 </div> |
|
301 <a name="create_commands"></a> |
|
302 <div> |
|
303 <table class="details" border="1" cellpadding="3" |
|
304 cellspacing="0" width="100%" bgcolor="white"> |
|
305 <tr><td> |
|
306 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
307 <tr valign="top"><td> |
|
308 <h3 class="epydoc"><span class="sig"><span class="sig-name">create_commands</span>(<span class="sig-arg">self</span>, |
|
309 <span class="sig-arg">manifest</span>)</span> |
|
310 </h3> |
|
311 </td><td align="right" valign="top" |
|
312 ><span class="codelink"><a href="archive.mappers-pysrc.html#PolicyMapper.create_commands">source code</a></span> |
|
313 </td> |
|
314 </table> |
|
315 |
|
316 Generates a list of build commands. |
|
317 <dl class="fields"> |
|
318 <dt>Overrides: |
|
319 <a href="archive.mappers.Mapper-class.html#create_commands">Mapper.create_commands</a> |
|
320 </dt> |
|
321 </dl> |
|
322 </td></tr></table> |
|
323 </div> |
|
324 <br /> |
|
325 <!-- ==================== NAVIGATION BAR ==================== --> |
|
326 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
327 bgcolor="#a0c0ff" cellspacing="0"> |
|
328 <tr valign="middle"> |
|
329 |
|
330 <!-- Tree link --> |
|
331 <th> <a |
|
332 href="module-tree.html">Trees</a> </th> |
|
333 |
|
334 <!-- Index link --> |
|
335 <th> <a |
|
336 href="identifier-index.html">Indices</a> </th> |
|
337 |
|
338 <!-- Help link --> |
|
339 <th> <a |
|
340 href="help.html">Help</a> </th> |
|
341 |
|
342 <th class="navbar" width="100%"></th> |
|
343 </tr> |
|
344 </table> |
|
345 <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
|
346 <tr> |
|
347 <td align="left" class="footer"> |
|
348 Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:16 2009 |
|
349 </td> |
|
350 <td align="right" class="footer"> |
|
351 <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> |
|
352 </td> |
|
353 </tr> |
|
354 </table> |
|
355 |
|
356 <script type="text/javascript"> |
|
357 <!-- |
|
358 // Private objects are initially displayed (because if |
|
359 // javascript is turned off then we want them to be |
|
360 // visible); but by default, we want to hide them. So hide |
|
361 // them unless we have a cookie that says to show them. |
|
362 checkCookie() |
|
363 // --> |
|
364 </script> |
|
365 |
|
366 </body> |
|
367 </html> |