|
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>symrec.ValidateReleaseMetadataCached</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="symrec-module.html">Module symrec</a> :: |
|
38 Class ValidateReleaseMetadataCached |
|
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="symrec.ValidateReleaseMetadataCached-class.html" |
|
49 target="_top">no frames</a>]</span></td></tr> |
|
50 </table> |
|
51 </td> |
|
52 </tr> |
|
53 </table> |
|
54 <!-- ==================== CLASS DESCRIPTION ==================== --> |
|
55 <h1 class="epydoc">Class ValidateReleaseMetadataCached</h1><span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached">source code</a></span><br /><br /> |
|
56 <pre class="base-tree"> |
|
57 object --+ |
|
58 | |
|
59 <a href="symrec.ReleaseMetadata-class.html">ReleaseMetadata</a> --+ |
|
60 | |
|
61 <a href="symrec.ValidateReleaseMetadata-class.html">ValidateReleaseMetadata</a> --+ |
|
62 | |
|
63 <strong class="uidshort">ValidateReleaseMetadataCached</strong> |
|
64 </pre> |
|
65 |
|
66 <hr /> |
|
67 Cached version of the metadata validation.<br /><br /> |
|
68 |
|
69 <!-- ==================== INSTANCE METHODS ==================== --> |
|
70 <a name="section-InstanceMethods"></a> |
|
71 <table class="summary" border="1" cellpadding="3" |
|
72 cellspacing="0" width="100%" bgcolor="white"> |
|
73 <tr bgcolor="#70b0f0" class="table-header"> |
|
74 <td colspan="2" class="table-header"> |
|
75 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
76 <tr valign="top"> |
|
77 <td align="left"><span class="table-header">Instance Methods</span></td> |
|
78 <td align="right" valign="top" |
|
79 ><span class="options">[<a href="#section-InstanceMethods" |
|
80 class="privatelink" onclick="toggle_private();" |
|
81 >hide private</a>]</span></td> |
|
82 </tr> |
|
83 </table> |
|
84 </td> |
|
85 </tr> |
|
86 <tr> |
|
87 <td width="15%" align="right" valign="top" class="summary"> |
|
88 <span class="summary-type"> </span> |
|
89 </td><td class="summary"> |
|
90 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
91 <tr> |
|
92 <td><span class="summary-sig"><a href="symrec.ValidateReleaseMetadataCached-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, |
|
93 <span class="summary-sig-arg">filename</span>, |
|
94 <span class="summary-sig-arg">cachefile</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
95 x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td> |
|
96 <td align="right" valign="top"> |
|
97 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.__init__">source code</a></span> |
|
98 |
|
99 </td> |
|
100 </tr> |
|
101 </table> |
|
102 |
|
103 </td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td width="15%" align="right" valign="top" class="summary"> |
|
107 <span class="summary-type"> </span> |
|
108 </td><td class="summary"> |
|
109 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
110 <tr> |
|
111 <td><span class="summary-sig"><a href="symrec.ValidateReleaseMetadataCached-class.html#is_valid" class="summary-sig-name">is_valid</a>(<span class="summary-sig-arg">self</span>, |
|
112 <span class="summary-sig-arg">checkmd5</span>=<span class="summary-sig-default">True</span>)</span><br /> |
|
113 Check if file is in the local cache.</td> |
|
114 <td align="right" valign="top"> |
|
115 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.is_valid">source code</a></span> |
|
116 |
|
117 </td> |
|
118 </tr> |
|
119 </table> |
|
120 |
|
121 </td> |
|
122 </tr> |
|
123 <tr> |
|
124 <td width="15%" align="right" valign="top" class="summary"> |
|
125 <span class="summary-type"> </span> |
|
126 </td><td class="summary"> |
|
127 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
128 <tr> |
|
129 <td><span class="summary-sig"><a name="in_cache"></a><span class="summary-sig-name">in_cache</span>(<span class="summary-sig-arg">self</span>, |
|
130 <span class="summary-sig-arg">metadatas</span>, |
|
131 <span class="summary-sig-arg">key</span>)</span></td> |
|
132 <td align="right" valign="top"> |
|
133 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.in_cache">source code</a></span> |
|
134 |
|
135 </td> |
|
136 </tr> |
|
137 </table> |
|
138 |
|
139 </td> |
|
140 </tr> |
|
141 <tr> |
|
142 <td width="15%" align="right" valign="top" class="summary"> |
|
143 <span class="summary-type"> </span> |
|
144 </td><td class="summary"> |
|
145 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
146 <tr> |
|
147 <td><span class="summary-sig"><a name="value_from_cache"></a><span class="summary-sig-name">value_from_cache</span>(<span class="summary-sig-arg">self</span>, |
|
148 <span class="summary-sig-arg">metadatas</span>, |
|
149 <span class="summary-sig-arg">key</span>)</span></td> |
|
150 <td align="right" valign="top"> |
|
151 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.value_from_cache">source code</a></span> |
|
152 |
|
153 </td> |
|
154 </tr> |
|
155 </table> |
|
156 |
|
157 </td> |
|
158 </tr> |
|
159 <tr> |
|
160 <td width="15%" align="right" valign="top" class="summary"> |
|
161 <span class="summary-type"> </span> |
|
162 </td><td class="summary"> |
|
163 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
164 <tr> |
|
165 <td><span class="summary-sig"><a name="load_cache"></a><span class="summary-sig-name">load_cache</span>(<span class="summary-sig-arg">self</span>)</span></td> |
|
166 <td align="right" valign="top"> |
|
167 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.load_cache">source code</a></span> |
|
168 |
|
169 </td> |
|
170 </tr> |
|
171 </table> |
|
172 |
|
173 </td> |
|
174 </tr> |
|
175 <tr> |
|
176 <td width="15%" align="right" valign="top" class="summary"> |
|
177 <span class="summary-type"> </span> |
|
178 </td><td class="summary"> |
|
179 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
180 <tr> |
|
181 <td><span class="summary-sig"><a name="update_cache"></a><span class="summary-sig-name">update_cache</span>(<span class="summary-sig-arg">self</span>, |
|
182 <span class="summary-sig-arg">metadatas</span>)</span></td> |
|
183 <td align="right" valign="top"> |
|
184 <span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.update_cache">source code</a></span> |
|
185 |
|
186 </td> |
|
187 </tr> |
|
188 </table> |
|
189 |
|
190 </td> |
|
191 </tr> |
|
192 <tr> |
|
193 <td colspan="2" class="summary"> |
|
194 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="symrec.ReleaseMetadata-class.html">ReleaseMetadata</a></code></b>: |
|
195 <code><a href="symrec.ReleaseMetadata-class.html#__getitem__">__getitem__</a></code>, |
|
196 <code><a href="symrec.ReleaseMetadata-class.html#__setitem__">__setitem__</a></code>, |
|
197 <code><a href="symrec.ReleaseMetadata-class.html#add_package">add_package</a></code>, |
|
198 <code><a href="symrec.ReleaseMetadata-class.html#getVariantPackage">getVariantPackage</a></code>, |
|
199 <code><a href="symrec.ReleaseMetadata-class.html#get_dependsof">get_dependsof</a></code>, |
|
200 <code><a href="symrec.ReleaseMetadata-class.html#get_releasedetails_info">get_releasedetails_info</a></code>, |
|
201 <code><a href="symrec.ReleaseMetadata-class.html#keys">keys</a></code>, |
|
202 <code><a href="symrec.ReleaseMetadata-class.html#save">save</a></code>, |
|
203 <code><a href="symrec.ReleaseMetadata-class.html#servicepacks">servicepacks</a></code>, |
|
204 <code><a href="symrec.ReleaseMetadata-class.html#set_dependsof">set_dependsof</a></code>, |
|
205 <code><a href="symrec.ReleaseMetadata-class.html#set_releasedetails_info">set_releasedetails_info</a></code>, |
|
206 <code><a href="symrec.ReleaseMetadata-class.html#xml">xml</a></code> |
|
207 </p> |
|
208 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
209 <code>__delattr__</code>, |
|
210 <code>__getattribute__</code>, |
|
211 <code>__hash__</code>, |
|
212 <code>__new__</code>, |
|
213 <code>__reduce__</code>, |
|
214 <code>__reduce_ex__</code>, |
|
215 <code>__repr__</code>, |
|
216 <code>__setattr__</code>, |
|
217 <code>__str__</code> |
|
218 </p> |
|
219 </td> |
|
220 </tr> |
|
221 </table> |
|
222 <!-- ==================== CLASS VARIABLES ==================== --> |
|
223 <a name="section-ClassVariables"></a> |
|
224 <table class="summary" border="1" cellpadding="3" |
|
225 cellspacing="0" width="100%" bgcolor="white"> |
|
226 <tr bgcolor="#70b0f0" class="table-header"> |
|
227 <td colspan="2" class="table-header"> |
|
228 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
229 <tr valign="top"> |
|
230 <td align="left"><span class="table-header">Class Variables</span></td> |
|
231 <td align="right" valign="top" |
|
232 ><span class="options">[<a href="#section-ClassVariables" |
|
233 class="privatelink" onclick="toggle_private();" |
|
234 >hide private</a>]</span></td> |
|
235 </tr> |
|
236 </table> |
|
237 </td> |
|
238 </tr> |
|
239 <tr> |
|
240 <td colspan="2" class="summary"> |
|
241 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="symrec.ReleaseMetadata-class.html">ReleaseMetadata</a></code></b>: |
|
242 <code><a href="symrec.ReleaseMetadata-class.html#baseline_product">baseline_product</a></code>, |
|
243 <code><a href="symrec.ReleaseMetadata-class.html#baseline_release">baseline_release</a></code>, |
|
244 <code><a href="symrec.ReleaseMetadata-class.html#baseline_service">baseline_service</a></code>, |
|
245 <code><a href="symrec.ReleaseMetadata-class.html#dependsof_product">dependsof_product</a></code>, |
|
246 <code><a href="symrec.ReleaseMetadata-class.html#dependsof_release">dependsof_release</a></code>, |
|
247 <code><a href="symrec.ReleaseMetadata-class.html#dependsof_service">dependsof_service</a></code>, |
|
248 <code><a href="symrec.ReleaseMetadata-class.html#filename">filename</a></code>, |
|
249 <code><a href="symrec.ReleaseMetadata-class.html#product">product</a></code>, |
|
250 <code><a href="symrec.ReleaseMetadata-class.html#release">release</a></code>, |
|
251 <code><a href="symrec.ReleaseMetadata-class.html#service">service</a></code> |
|
252 </p> |
|
253 </td> |
|
254 </tr> |
|
255 </table> |
|
256 <!-- ==================== PROPERTIES ==================== --> |
|
257 <a name="section-Properties"></a> |
|
258 <table class="summary" border="1" cellpadding="3" |
|
259 cellspacing="0" width="100%" bgcolor="white"> |
|
260 <tr bgcolor="#70b0f0" class="table-header"> |
|
261 <td colspan="2" class="table-header"> |
|
262 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
263 <tr valign="top"> |
|
264 <td align="left"><span class="table-header">Properties</span></td> |
|
265 <td align="right" valign="top" |
|
266 ><span class="options">[<a href="#section-Properties" |
|
267 class="privatelink" onclick="toggle_private();" |
|
268 >hide private</a>]</span></td> |
|
269 </tr> |
|
270 </table> |
|
271 </td> |
|
272 </tr> |
|
273 <tr> |
|
274 <td colspan="2" class="summary"> |
|
275 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
276 <code>__class__</code> |
|
277 </p> |
|
278 </td> |
|
279 </tr> |
|
280 </table> |
|
281 <!-- ==================== METHOD DETAILS ==================== --> |
|
282 <a name="section-MethodDetails"></a> |
|
283 <table class="details" border="1" cellpadding="3" |
|
284 cellspacing="0" width="100%" bgcolor="white"> |
|
285 <tr bgcolor="#70b0f0" class="table-header"> |
|
286 <td colspan="2" class="table-header"> |
|
287 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
288 <tr valign="top"> |
|
289 <td align="left"><span class="table-header">Method Details</span></td> |
|
290 <td align="right" valign="top" |
|
291 ><span class="options">[<a href="#section-MethodDetails" |
|
292 class="privatelink" onclick="toggle_private();" |
|
293 >hide private</a>]</span></td> |
|
294 </tr> |
|
295 </table> |
|
296 </td> |
|
297 </tr> |
|
298 </table> |
|
299 <a name="__init__"></a> |
|
300 <div> |
|
301 <table class="details" border="1" cellpadding="3" |
|
302 cellspacing="0" width="100%" bgcolor="white"> |
|
303 <tr><td> |
|
304 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
305 <tr valign="top"><td> |
|
306 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, |
|
307 <span class="sig-arg">filename</span>, |
|
308 <span class="sig-arg">cachefile</span>=<span class="sig-default">None</span>)</span> |
|
309 <br /><em class="fname">(Constructor)</em> |
|
310 </h3> |
|
311 </td><td align="right" valign="top" |
|
312 ><span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.__init__">source code</a></span> |
|
313 </td> |
|
314 </table> |
|
315 |
|
316 x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
317 <dl class="fields"> |
|
318 <dt>Overrides: |
|
319 <a href="symrec.ValidateReleaseMetadata-class.html#__init__">ValidateReleaseMetadata.__init__</a> |
|
320 </dt> |
|
321 </dl> |
|
322 </td></tr></table> |
|
323 </div> |
|
324 <a name="is_valid"></a> |
|
325 <div> |
|
326 <table class="details" border="1" cellpadding="3" |
|
327 cellspacing="0" width="100%" bgcolor="white"> |
|
328 <tr><td> |
|
329 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
330 <tr valign="top"><td> |
|
331 <h3 class="epydoc"><span class="sig"><span class="sig-name">is_valid</span>(<span class="sig-arg">self</span>, |
|
332 <span class="sig-arg">checkmd5</span>=<span class="sig-default">True</span>)</span> |
|
333 </h3> |
|
334 </td><td align="right" valign="top" |
|
335 ><span class="codelink"><a href="symrec-pysrc.html#ValidateReleaseMetadataCached.is_valid">source code</a></span> |
|
336 </td> |
|
337 </table> |
|
338 |
|
339 Check if file is in the local cache. |
|
340 Add valid release to the cache. |
|
341 <dl class="fields"> |
|
342 <dt>Overrides: |
|
343 <a href="symrec.ValidateReleaseMetadata-class.html#is_valid">ValidateReleaseMetadata.is_valid</a> |
|
344 </dt> |
|
345 </dl> |
|
346 </td></tr></table> |
|
347 </div> |
|
348 <br /> |
|
349 <!-- ==================== NAVIGATION BAR ==================== --> |
|
350 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
351 bgcolor="#a0c0ff" cellspacing="0"> |
|
352 <tr valign="middle"> |
|
353 |
|
354 <!-- Tree link --> |
|
355 <th> <a |
|
356 href="module-tree.html">Trees</a> </th> |
|
357 |
|
358 <!-- Index link --> |
|
359 <th> <a |
|
360 href="identifier-index.html">Indices</a> </th> |
|
361 |
|
362 <!-- Help link --> |
|
363 <th> <a |
|
364 href="help.html">Help</a> </th> |
|
365 |
|
366 <th class="navbar" width="100%"></th> |
|
367 </tr> |
|
368 </table> |
|
369 <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
|
370 <tr> |
|
371 <td align="left" class="footer"> |
|
372 Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:19 2009 |
|
373 </td> |
|
374 <td align="right" class="footer"> |
|
375 <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> |
|
376 </td> |
|
377 </tr> |
|
378 </table> |
|
379 |
|
380 <script type="text/javascript"> |
|
381 <!-- |
|
382 // Private objects are initially displayed (because if |
|
383 // javascript is turned off then we want them to be |
|
384 // visible); but by default, we want to hide them. So hide |
|
385 // them unless we have a cookie that says to show them. |
|
386 checkCookie() |
|
387 // --> |
|
388 </script> |
|
389 |
|
390 </body> |
|
391 </html> |