doc/api/python/ccm.File-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>ccm.File</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="ccm-module.html">Package&nbsp;ccm</a> ::
       
    38         Class&nbsp;File
       
    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&nbsp;private</a>]</span></td></tr>
       
    46         <tr><td align="right"><span class="options"
       
    47             >[<a href="frames.html" target="_top">frames</a
       
    48             >]&nbsp;|&nbsp;<a href="ccm.File-class.html"
       
    49             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    50       </table>
       
    51     </td>
       
    52   </tr>
       
    53 </table>
       
    54 <!-- ==================== CLASS DESCRIPTION ==================== -->
       
    55 <h1 class="epydoc">Class File</h1><span class="codelink"><a href="ccm-pysrc.html#File">source&nbsp;code</a></span><br /><br />
       
    56 <pre class="base-tree">
       
    57   object --+        
       
    58            |        
       
    59 <a href="ccm.FourPartName-class.html">FourPartName</a> --+    
       
    60                |    
       
    61        <a href="ccm.CCMObject-class.html">CCMObject</a> --+
       
    62                    |
       
    63                   <strong class="uidshort">File</strong>
       
    64 </pre>
       
    65 
       
    66 <hr />
       
    67 Wrapper for any Synergy file object<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">&nbsp;</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="ccm.File-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
       
    93         <span class="summary-sig-arg">session</span>,
       
    94         <span class="summary-sig-arg">fpn</span>)</span><br />
       
    95       Create a FourPartName object based on a ifpn string.</td>
       
    96           <td align="right" valign="top">
       
    97             <span class="codelink"><a href="ccm-pysrc.html#File.__init__">source&nbsp;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">&nbsp;</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 name="content"></a><span class="summary-sig-name">content</span>(<span class="summary-sig-arg">self</span>)</span></td>
       
   112           <td align="right" valign="top">
       
   113             <span class="codelink"><a href="ccm-pysrc.html#File.content">source&nbsp;code</a></span>
       
   114             
       
   115           </td>
       
   116         </tr>
       
   117       </table>
       
   118       
       
   119     </td>
       
   120   </tr>
       
   121 <tr>
       
   122     <td width="15%" align="right" valign="top" class="summary">
       
   123       <span class="summary-type">&nbsp;</span>
       
   124     </td><td class="summary">
       
   125       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   126         <tr>
       
   127           <td><span class="summary-sig"><a name="to_file"></a><span class="summary-sig-name">to_file</span>(<span class="summary-sig-arg">self</span>,
       
   128         <span class="summary-sig-arg">path</span>)</span></td>
       
   129           <td align="right" valign="top">
       
   130             <span class="codelink"><a href="ccm-pysrc.html#File.to_file">source&nbsp;code</a></span>
       
   131             
       
   132           </td>
       
   133         </tr>
       
   134       </table>
       
   135       
       
   136     </td>
       
   137   </tr>
       
   138 <tr>
       
   139     <td width="15%" align="right" valign="top" class="summary">
       
   140       <span class="summary-type">&nbsp;</span>
       
   141     </td><td class="summary">
       
   142       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   143         <tr>
       
   144           <td><span class="summary-sig"><a name="merge"></a><span class="summary-sig-name">merge</span>(<span class="summary-sig-arg">self</span>,
       
   145         <span class="summary-sig-arg">ccm_object</span>,
       
   146         <span class="summary-sig-arg">task</span>)</span></td>
       
   147           <td align="right" valign="top">
       
   148             <span class="codelink"><a href="ccm-pysrc.html#File.merge">source&nbsp;code</a></span>
       
   149             
       
   150           </td>
       
   151         </tr>
       
   152       </table>
       
   153       
       
   154     </td>
       
   155   </tr>
       
   156 <tr>
       
   157     <td width="15%" align="right" valign="top" class="summary">
       
   158       <span class="summary-type">&nbsp;</span>
       
   159     </td><td class="summary">
       
   160       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   161         <tr>
       
   162           <td><span class="summary-sig"><a name="checkin"></a><span class="summary-sig-name">checkin</span>(<span class="summary-sig-arg">self</span>,
       
   163         <span class="summary-sig-arg">state</span>,
       
   164         <span class="summary-sig-arg">comment</span>=<span class="summary-sig-default">None</span>)</span></td>
       
   165           <td align="right" valign="top">
       
   166             <span class="codelink"><a href="ccm-pysrc.html#File.checkin">source&nbsp;code</a></span>
       
   167             
       
   168           </td>
       
   169         </tr>
       
   170       </table>
       
   171       
       
   172     </td>
       
   173   </tr>
       
   174   <tr>
       
   175     <td colspan="2" class="summary">
       
   176     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="ccm.CCMObject-class.html">CCMObject</a></code></b>:
       
   177       <code><a href="ccm.CCMObject-class.html#__getitem__">__getitem__</a></code>,
       
   178       <code><a href="ccm.CCMObject-class.html#__setitem__">__setitem__</a></code>,
       
   179       <code><a href="ccm.CCMObject-class.html#create_attribute">create_attribute</a></code>,
       
   180       <code><a href="ccm.CCMObject-class.html#exists">exists</a></code>,
       
   181       <code><a href="ccm.CCMObject-class.html#finduse">finduse</a></code>,
       
   182       <code><a href="ccm.CCMObject-class.html#is_predecessor_of">is_predecessor_of</a></code>,
       
   183       <code><a href="ccm.CCMObject-class.html#is_recursive_predecessor_of">is_recursive_predecessor_of</a></code>,
       
   184       <code><a href="ccm.CCMObject-class.html#is_recursive_predecessor_of_fast">is_recursive_predecessor_of_fast</a></code>,
       
   185       <code><a href="ccm.CCMObject-class.html#is_recursive_successor_of_fast">is_recursive_successor_of_fast</a></code>,
       
   186       <code><a href="ccm.CCMObject-class.html#is_recursive_sucessor_of">is_recursive_sucessor_of</a></code>,
       
   187       <code><a href="ccm.CCMObject-class.html#keys">keys</a></code>,
       
   188       <code><a href="ccm.CCMObject-class.html#predecessors">predecessors</a></code>,
       
   189       <code><a href="ccm.CCMObject-class.html#relate">relate</a></code>,
       
   190       <code><a href="ccm.CCMObject-class.html#session">session</a></code>,
       
   191       <code><a href="ccm.CCMObject-class.html#successors">successors</a></code>
       
   192       </p>
       
   193     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="ccm.CCMObject-class.html">CCMObject</a></code></b> (private):
       
   194       <code><a href="ccm.CCMObject-class.html#_getsession">_getsession</a></code>
       
   195       </p></div>
       
   196     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="ccm.FourPartName-class.html">FourPartName</a></code></b>:
       
   197       <code><a href="ccm.FourPartName-class.html#__eq__">__eq__</a></code>,
       
   198       <code><a href="ccm.FourPartName-class.html#__ne__">__ne__</a></code>,
       
   199       <code><a href="ccm.FourPartName-class.html#__repr__">__repr__</a></code>,
       
   200       <code><a href="ccm.FourPartName-class.html#__str__">__str__</a></code>,
       
   201       <code><a href="ccm.FourPartName-class.html#family">family</a></code>,
       
   202       <code><a href="ccm.FourPartName-class.html#instance">instance</a></code>,
       
   203       <code><a href="ccm.FourPartName-class.html#is_same_family">is_same_family</a></code>,
       
   204       <code><a href="ccm.FourPartName-class.html#name">name</a></code>,
       
   205       <code><a href="ccm.FourPartName-class.html#objectname">objectname</a></code>,
       
   206       <code><a href="ccm.FourPartName-class.html#type">type</a></code>,
       
   207       <code><a href="ccm.FourPartName-class.html#version">version</a></code>
       
   208       </p>
       
   209     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   210       <code>__delattr__</code>,
       
   211       <code>__getattribute__</code>,
       
   212       <code>__hash__</code>,
       
   213       <code>__new__</code>,
       
   214       <code>__reduce__</code>,
       
   215       <code>__reduce_ex__</code>,
       
   216       <code>__setattr__</code>
       
   217       </p>
       
   218     </td>
       
   219   </tr>
       
   220 </table>
       
   221 <!-- ==================== STATIC METHODS ==================== -->
       
   222 <a name="section-StaticMethods"></a>
       
   223 <table class="summary" border="1" cellpadding="3"
       
   224        cellspacing="0" width="100%" bgcolor="white">
       
   225 <tr bgcolor="#70b0f0" class="table-header">
       
   226   <td colspan="2" class="table-header">
       
   227     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   228       <tr valign="top">
       
   229         <td align="left"><span class="table-header">Static Methods</span></td>
       
   230         <td align="right" valign="top"
       
   231          ><span class="options">[<a href="#section-StaticMethods"
       
   232          class="privatelink" onclick="toggle_private();"
       
   233          >hide private</a>]</span></td>
       
   234       </tr>
       
   235     </table>
       
   236   </td>
       
   237 </tr>
       
   238   <tr>
       
   239     <td colspan="2" class="summary">
       
   240     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="ccm.FourPartName-class.html">FourPartName</a></code></b>:
       
   241       <code><a href="ccm.FourPartName-class.html#convert">convert</a></code>,
       
   242       <code><a href="ccm.FourPartName-class.html#is_valid">is_valid</a></code>
       
   243       </p>
       
   244     </td>
       
   245   </tr>
       
   246 </table>
       
   247 <!-- ==================== PROPERTIES ==================== -->
       
   248 <a name="section-Properties"></a>
       
   249 <table class="summary" border="1" cellpadding="3"
       
   250        cellspacing="0" width="100%" bgcolor="white">
       
   251 <tr bgcolor="#70b0f0" class="table-header">
       
   252   <td colspan="2" class="table-header">
       
   253     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   254       <tr valign="top">
       
   255         <td align="left"><span class="table-header">Properties</span></td>
       
   256         <td align="right" valign="top"
       
   257          ><span class="options">[<a href="#section-Properties"
       
   258          class="privatelink" onclick="toggle_private();"
       
   259          >hide private</a>]</span></td>
       
   260       </tr>
       
   261     </table>
       
   262   </td>
       
   263 </tr>
       
   264   <tr>
       
   265     <td colspan="2" class="summary">
       
   266     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
       
   267       <code>__class__</code>
       
   268       </p>
       
   269     </td>
       
   270   </tr>
       
   271 </table>
       
   272 <!-- ==================== METHOD DETAILS ==================== -->
       
   273 <a name="section-MethodDetails"></a>
       
   274 <table class="details" border="1" cellpadding="3"
       
   275        cellspacing="0" width="100%" bgcolor="white">
       
   276 <tr bgcolor="#70b0f0" class="table-header">
       
   277   <td colspan="2" class="table-header">
       
   278     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   279       <tr valign="top">
       
   280         <td align="left"><span class="table-header">Method Details</span></td>
       
   281         <td align="right" valign="top"
       
   282          ><span class="options">[<a href="#section-MethodDetails"
       
   283          class="privatelink" onclick="toggle_private();"
       
   284          >hide private</a>]</span></td>
       
   285       </tr>
       
   286     </table>
       
   287   </td>
       
   288 </tr>
       
   289 </table>
       
   290 <a name="__init__"></a>
       
   291 <div>
       
   292 <table class="details" border="1" cellpadding="3"
       
   293        cellspacing="0" width="100%" bgcolor="white">
       
   294 <tr><td>
       
   295   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   296   <tr valign="top"><td>
       
   297   <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
       
   298         <span class="sig-arg">session</span>,
       
   299         <span class="sig-arg">fpn</span>)</span>
       
   300     <br /><em class="fname">(Constructor)</em>
       
   301   </h3>
       
   302   </td><td align="right" valign="top"
       
   303     ><span class="codelink"><a href="ccm-pysrc.html#File.__init__">source&nbsp;code</a></span>&nbsp;
       
   304     </td>
       
   305   </table>
       
   306   
       
   307   <p>Create a FourPartName object based on a ifpn string.</p>
       
   308 <p>The string have to match the following patterns:
       
   309 - name-version:type:instance
       
   310 - name:version:releasedef:instance
       
   311 - Task database#id
       
   312 - Folder database#id</p>
       
   313 <p>Anything else is considered as old release string format.</p>
       
   314   <dl class="fields">
       
   315     <dt>Overrides:
       
   316       <a href="ccm.CCMObject-class.html#__init__">CCMObject.__init__</a>
       
   317     </dt>
       
   318   </dl>
       
   319 </td></tr></table>
       
   320 </div>
       
   321 <br />
       
   322 <!-- ==================== NAVIGATION BAR ==================== -->
       
   323 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   324        bgcolor="#a0c0ff" cellspacing="0">
       
   325   <tr valign="middle">
       
   326 
       
   327   <!-- Tree link -->
       
   328       <th>&nbsp;&nbsp;&nbsp;<a
       
   329         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   330 
       
   331   <!-- Index link -->
       
   332       <th>&nbsp;&nbsp;&nbsp;<a
       
   333         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   334 
       
   335   <!-- Help link -->
       
   336       <th>&nbsp;&nbsp;&nbsp;<a
       
   337         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   338 
       
   339       <th class="navbar" width="100%"></th>
       
   340   </tr>
       
   341 </table>
       
   342 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   343   <tr>
       
   344     <td align="left" class="footer">
       
   345     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:17 2009
       
   346     </td>
       
   347     <td align="right" class="footer">
       
   348       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   349     </td>
       
   350   </tr>
       
   351 </table>
       
   352 
       
   353 <script type="text/javascript">
       
   354   <!--
       
   355   // Private objects are initially displayed (because if
       
   356   // javascript is turned off then we want them to be
       
   357   // visible); but by default, we want to hide them.  So hide
       
   358   // them unless we have a cookie that says to show them.
       
   359   checkCookie()
       
   360   // -->
       
   361 </script>
       
   362   
       
   363 </body>
       
   364 </html>