Ignore:
Timestamp:
29/09/08 16:05:29 (11 years ago)
Author:
pjkersha
Message:

Working unit tests for WSGI based Attribute Authority.

  • Altered so that all Attribute Config is picked up from the Paste ini file. Separate cfg or xml based config file is still supported.

TODO:

  • Simplify unit test config for client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/documentation/epydoc/ndg.security.common.X509.X500DN-class.html

    r3153 r4245  
    6060</table> 
    6161<!-- ==================== CLASS DESCRIPTION ==================== --> 
    62 <h1 class="epydoc">Class X500DN</h1><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN">source&nbsp;code</a></span><br /><br /> 
     62<h1 class="epydoc">Class X500DN</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN">source&nbsp;code</a></span></p> 
    6363<center> 
    64 <center>  <map id="uml_class_diagram_for_ndg_secu_65" name="uml_class_diagram_for_ndg_secu_65"> 
    65 <area shape="rect" href="javascript: void(0);" title="dict() &#45;&gt; new empty dictionary." alt="" coords="15,11,67,27"/> 
    66 <area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html" title="NDG X500 Distinguished name" alt="" coords="15,56,67,72"/> 
     64<center>  <map id="uml_class_diagram_for_ndg_secu_74" name="uml_class_diagram_for_ndg_secu_74"> 
     65<area shape="rect" href="javascript:void(0);" title="cmp(x,y)" alt="" coords="157,36,296,55"/> 
     66<area shape="rect" href="javascript:void(0);" title="x&gt;=y" alt="" coords="157,55,296,73"/> 
     67<area shape="rect" href="javascript:void(0);" title="x.__getattribute__(&#39;name&#39;) &lt;==&gt; x.name" alt="" coords="157,73,296,92"/> 
     68<area shape="rect" href="javascript:void(0);" title="x&gt;y" alt="" coords="157,92,296,111"/> 
     69<area shape="rect" href="javascript:void(0);" title="hash(x)" alt="" coords="157,111,296,129"/> 
     70<area shape="rect" href="javascript:void(0);" title="iter(x)" alt="" coords="157,129,296,148"/> 
     71<area shape="rect" href="javascript:void(0);" title="x&lt;=y" alt="" coords="157,148,296,167"/> 
     72<area shape="rect" href="javascript:void(0);" title="len(x)" alt="" coords="157,167,296,185"/> 
     73<area shape="rect" href="javascript:void(0);" title="x&lt;y" alt="" coords="157,185,296,204"/> 
     74<area shape="rect" href="javascript:void(0);" title="dict.__new__" alt="" coords="157,204,296,223"/> 
     75<area shape="rect" href="javascript:void(0);" title="v defaults to None." alt="" coords="157,223,296,241"/> 
     76<area shape="rect" href="javascript:void(0);" title="dict.iteritems" alt="" coords="157,241,296,260"/> 
     77<area shape="rect" href="javascript:void(0);" title="dict.iterkeys" alt="" coords="157,260,296,279"/> 
     78<area shape="rect" href="javascript:void(0);" title="Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]" alt="" coords="157,297,296,316"/> 
     79<area shape="rect" href="javascript:void(0);" title="dict() &#45;&gt; new empty dictionary." alt="" coords="156,11,297,317"/> 
     80<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__init__" title="Create a new X500 Distinguished Name" alt="" coords="17,372,436,391"/> 
     81<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__repr__" title="Override default behaviour to return internal dictionary content" alt="" coords="17,391,436,409"/> 
     82<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__str__" title="Behaviour for print and string statements &#45; convert DN into serialised &#160;format." alt="" coords="17,409,436,428"/> 
     83<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__eq__" title="Return true if the all the fields of the two DNs are equal" alt="" coords="17,428,436,447"/> 
     84<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__ne__" title="Return true if the all the fields of the two DNs are equal" alt="" coords="17,447,436,465"/> 
     85<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__delitem__" title="Prevent keys from being deleted." alt="" coords="17,465,436,484"/> 
     86<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__getitem__" title="x[y]" alt="" coords="17,484,436,503"/> 
     87<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#__setitem__" title="x[i]=y" alt="" coords="17,503,436,521"/> 
     88<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#clear" title="Remove all items from D." alt="" coords="17,521,436,540"/> 
     89<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#copy" title="ndg.security.common.X509.X500DN.copy" alt="" coords="17,540,436,559"/> 
     90<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#keys" title="ndg.security.common.X509.X500DN.keys" alt="" coords="17,559,436,577"/> 
     91<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#items" title="ndg.security.common.X509.X500DN.items" alt="" coords="17,577,436,596"/> 
     92<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#values" title="ndg.security.common.X509.X500DN.values" alt="" coords="17,596,436,615"/> 
     93<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html#parseSeparator" title="Attempt to parse the separator character from a given input DN string." alt="" coords="17,633,436,652"/> 
     94<area shape="rect" href="ndg.security.common.X509.X500DN&#45;class.html" title="NDG X500 Distinguished name" alt="" coords="16,347,437,653"/> 
    6795</map> 
    68   <img src="uml_class_diagram_for_ndg_secu_65.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_65" ismap="ismap" class="graph-without-title" /> 
    69 </center></center> 
     96  <img src="uml_class_diagram_for_ndg_secu_74.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_74" ismap="ismap" class="graph-without-title" /> 
     97</center> 
     98</center> 
    7099<hr /> 
    71 NDG X500 Distinguished name<br /><br /> 
     100<p>NDG X500 Distinguished name</p> 
    72101 
    73102<!-- ==================== INSTANCE METHODS ==================== --> 
     
    90119<tr> 
    91120    <td width="15%" align="right" valign="top" class="summary"> 
    92       <span class="summary-type">&nbsp;</span> 
     121      <span class="summary-type"><pre class="literalblock"> 
     122new empty dictionary 
     123 
     124</pre></span> 
    93125    </td><td class="summary"> 
    94126      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     
    98130        <span class="summary-sig-arg">m2CryptoX509Name</span>=<span class="summary-sig-default">None</span>, 
    99131        <span class="summary-sig-arg">separator</span>=<span class="summary-sig-default">None</span>)</span><br /> 
    100       Create a new X500 Distinguished Name 
    101  
    102 m2CryptoX509Name:   initialise using using an M2Crypto.X509.X509_Name 
    103 dn:                 initialise using a distinguished name string 
    104 separator:          separator used to delimit dn fields - usually 
    105                     '/' or ','.</td> 
     132      Create a new X500 Distinguished Name</td> 
    106133          <td align="right" valign="top"> 
    107134            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__init__">source&nbsp;code</a></span> 
     
    120147        <tr> 
    121148          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">self</span>)</span><br /> 
    122       Override default behaviour to return internal dictionary  
    123       content</td> 
     149      Override default behaviour to return internal dictionary content</td> 
    124150          <td align="right" valign="top"> 
    125151            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__repr__">source&nbsp;code</a></span> 
     
    242268<tr> 
    243269    <td width="15%" align="right" valign="top" class="summary"> 
    244       <span class="summary-type">&nbsp;</span> 
     270      <span class="summary-type">None</span> 
    245271    </td><td class="summary"> 
    246272      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     
    259285<tr> 
    260286    <td width="15%" align="right" valign="top" class="summary"> 
    261       <span class="summary-type">&nbsp;</span> 
    262     </td><td class="summary"> 
    263       <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    264         <tr> 
    265           <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#copy" class="summary-sig-name">copy</a>(<span class="summary-sig-arg">self</span>)</span><br /> 
    266       Returns: 
    267 a shallow copy of D</td> 
     287      <span class="summary-type">a shallow copy of D</span> 
     288    </td><td class="summary"> 
     289      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     290        <tr> 
     291          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#copy" class="summary-sig-name">copy</a>(<span class="summary-sig-arg">self</span>)</span></td> 
    268292          <td align="right" valign="top"> 
    269293            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.copy">source&nbsp;code</a></span> 
     
    277301<tr> 
    278302    <td width="15%" align="right" valign="top" class="summary"> 
    279       <span class="summary-type">&nbsp;</span> 
    280     </td><td class="summary"> 
    281       <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    282         <tr> 
    283           <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#keys" class="summary-sig-name">keys</a>(<span class="summary-sig-arg">self</span>)</span><br /> 
    284       Returns: 
    285 list of D's keys</td> 
     303      <span class="summary-type">list of D's keys</span> 
     304    </td><td class="summary"> 
     305      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     306        <tr> 
     307          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#keys" class="summary-sig-name">keys</a>(<span class="summary-sig-arg">self</span>)</span></td> 
    286308          <td align="right" valign="top"> 
    287309            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.keys">source&nbsp;code</a></span> 
     
    295317<tr> 
    296318    <td width="15%" align="right" valign="top" class="summary"> 
    297       <span class="summary-type">&nbsp;</span> 
    298     </td><td class="summary"> 
    299       <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    300         <tr> 
    301           <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#items" class="summary-sig-name">items</a>(<span class="summary-sig-arg">self</span>)</span><br /> 
    302       Returns: 
    303 list of D's (key, value) pairs, as 2-tuples</td> 
     319      <span class="summary-type">list of D's (key, value) pairs, as 2-tuples</span> 
     320    </td><td class="summary"> 
     321      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     322        <tr> 
     323          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#items" class="summary-sig-name">items</a>(<span class="summary-sig-arg">self</span>)</span></td> 
    304324          <td align="right" valign="top"> 
    305325            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.items">source&nbsp;code</a></span> 
     
    313333<tr> 
    314334    <td width="15%" align="right" valign="top" class="summary"> 
    315       <span class="summary-type">&nbsp;</span> 
    316     </td><td class="summary"> 
    317       <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    318         <tr> 
    319           <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#values" class="summary-sig-name">values</a>(<span class="summary-sig-arg">self</span>)</span><br /> 
    320       Returns: 
    321 list of D's values</td> 
     335      <span class="summary-type">list of D's values</span> 
     336    </td><td class="summary"> 
     337      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     338        <tr> 
     339          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#values" class="summary-sig-name">values</a>(<span class="summary-sig-arg">self</span>)</span></td> 
    322340          <td align="right" valign="top"> 
    323341            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.values">source&nbsp;code</a></span> 
     
    331349<tr> 
    332350    <td width="15%" align="right" valign="top" class="summary"> 
    333       <span class="summary-type">&nbsp;</span> 
     351      <span class="summary-type">True if D has a key k, else False</span> 
    334352    </td><td class="summary"> 
    335353      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    336354        <tr> 
    337355          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#has_key" class="summary-sig-name">has_key</a>(<span class="summary-sig-arg">self</span>, 
    338         <span class="summary-sig-arg">key</span>)</span><br /> 
    339       Returns: 
    340 True if D has a key k, else False</td> 
     356        <span class="summary-sig-arg">key</span>)</span></td> 
    341357          <td align="right" valign="top"> 
    342358            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.has_key">source&nbsp;code</a></span> 
     
    350366<tr> 
    351367    <td width="15%" align="right" valign="top" class="summary"> 
    352       <span class="summary-type">&nbsp;</span> 
     368      <span class="summary-type">True if D has a key k, else False</span> 
    353369    </td><td class="summary"> 
    354370      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
    355371        <tr> 
    356372          <td><span class="summary-sig"><a href="ndg.security.common.X509.X500DN-class.html#__contains__" class="summary-sig-name">__contains__</a>(<span class="summary-sig-arg">self</span>, 
    357         <span class="summary-sig-arg">key</span>)</span><br /> 
    358       Returns: 
    359 True if D has a key k, else False</td> 
     373        <span class="summary-sig-arg">key</span>)</span></td> 
    360374          <td align="right" valign="top"> 
    361375            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__contains__">source&nbsp;code</a></span> 
     
    369383<tr> 
    370384    <td width="15%" align="right" valign="top" class="summary"> 
    371       <span class="summary-type">&nbsp;</span> 
     385      <span class="summary-type">D[k] if k in D, else d</span> 
    372386    </td><td class="summary"> 
    373387      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
     
    430444        <span class="summary-sig-arg">dn</span>, 
    431445        <span class="summary-sig-arg">separator</span>=<span class="summary-sig-default">None</span>)</span><br /> 
    432       Break up a DN string into it's constituent fields and use to  
    433       update the object's dictionary</td> 
     446      Break up a DN string into it's constituent fields and use to update  
     447      the object's dictionary</td> 
    434448          <td align="right" valign="top"> 
    435449            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.deserialise">source&nbsp;code</a></span> 
     
    450464        <span class="summary-sig-arg">dn</span>, 
    451465        <span class="summary-sig-arg">separator</span>=<span class="summary-sig-default">None</span>)</span><br /> 
    452       Break up a DN string into it's constituent fields and use to  
    453       update the object's dictionary</td> 
     466      Break up a DN string into it's constituent fields and use to update  
     467      the object's dictionary</td> 
    454468          <td align="right" valign="top"> 
    455469            <span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.deserialise">source&nbsp;code</a></span> 
     
    532546      <span class="summary-type">&nbsp;</span> 
    533547    </td><td class="summary"> 
    534         <a href="ndg.security.common.X509.X500DN-class.html#__shortNameLUT" class="summary-name">__shortNameLUT</a> = <code title="{'commonName': 'CN', 
    535  'countryName': 'C', 
    536  'domainComponent': 'DC', 
    537  'emailAddress': 'EMAILADDRESS', 
    538  'localityName': 'L', 
    539  'organisation': 'O', 
    540  'organisationalUnitName': 'OU', 
    541  'stateOrProvinceName': 'ST', 
    542 ..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">commonName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">CN</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">countryName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">C</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">dom</code><code class="variable-ellipsis">...</code></code> 
     548        <a href="ndg.security.common.X509.X500DN-class.html#__shortNameLUT" class="summary-name" onclick="show_private();">__shortNameLUT</a> = <code title="{'commonName': 'CN', 'organisationalUnitName': 'OU', 'organisation': '\ 
     549O', 'countryName': 'C', 'emailAddress': 'EMAILADDRESS', 'localityName'\ 
     550: 'L', 'stateOrProvinceName': 'ST', 'streetAddress': 'STREET', 'domain\ 
     551Component': 'DC', 'userid': 'UID'}">{'commonName': 'CN', 'organisationalUnitName'<code class="variable-ellipsis">...</code></code> 
    543552    </td> 
    544553  </tr> 
     
    603612    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__init__">source&nbsp;code</a></span>&nbsp; 
    604613    </td> 
    605   </table> 
     614  </tr></table> 
    606615   
    607616  <pre class="literalblock"> 
     
    618627</pre> 
    619628  <dl class="fields"> 
    620     <dt>Returns:</dt> 
    621         <dd><pre class="literalblock"> 
     629    <dt>Returns: <pre class="literalblock"> 
    622630new empty dictionary 
    623631 
    624 </pre></dd> 
    625     <dt>Overrides: 
    626       dict.__init__ 
     632</pre></dt> 
     633    <dt>Overrides: 
     634        object.__init__ 
    627635    </dt> 
    628636  </dl> 
     
    642650    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__repr__">source&nbsp;code</a></span>&nbsp; 
    643651    </td> 
    644   </table> 
    645    
    646   Override default behaviour to return internal dictionary content 
    647   <dl class="fields"> 
    648     <dt>Overrides: 
    649       dict.__repr__ 
     652  </tr></table> 
     653   
     654  <p>Override default behaviour to return internal dictionary content</p> 
     655  <dl class="fields"> 
     656    <dt>Overrides: 
     657        object.__repr__ 
    650658    </dt> 
    651659  </dl> 
     
    665673    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__str__">source&nbsp;code</a></span>&nbsp; 
    666674    </td> 
    667   </table> 
    668    
    669   Behaviour for print and string statements - convert DN into serialised 
    670   format. 
    671   <dl class="fields"> 
    672     <dt>Overrides: 
    673       object.__str__ 
     675  </tr></table> 
     676   
     677  <p>Behaviour for print and string statements - convert DN into serialised 
     678  format.</p> 
     679  <dl class="fields"> 
     680    <dt>Overrides: 
     681        object.__str__ 
    674682    </dt> 
    675683  </dl> 
     
    690698    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__eq__">source&nbsp;code</a></span>&nbsp; 
    691699    </td> 
    692   </table> 
    693    
    694   Return true if the all the fields of the two DNs are equal 
    695   <dl class="fields"> 
    696     <dt>Overrides: 
    697       dict.__eq__ 
     700  </tr></table> 
     701   
     702  <p>Return true if the all the fields of the two DNs are equal</p> 
     703  <dl class="fields"> 
     704    <dt>Overrides: 
     705        dict.__eq__ 
    698706    </dt> 
    699707  </dl> 
     
    713721    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__ne__">source&nbsp;code</a></span>&nbsp; 
    714722    </td> 
    715   </table> 
    716    
    717   Return true if the all the fields of the two DNs are equal 
    718   <dl class="fields"> 
    719     <dt>Overrides: 
    720       dict.__ne__ 
     723  </tr></table> 
     724   
     725  <p>Return true if the all the fields of the two DNs are equal</p> 
     726  <dl class="fields"> 
     727    <dt>Overrides: 
     728        dict.__ne__ 
    721729    </dt> 
    722730  </dl> 
     
    737745    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__delitem__">source&nbsp;code</a></span>&nbsp; 
    738746    </td> 
    739   </table> 
    740    
    741   Prevent keys from being deleted. 
    742   <dl class="fields"> 
    743     <dt>Overrides: 
    744       dict.__delitem__ 
     747  </tr></table> 
     748   
     749  <p>Prevent keys from being deleted.</p> 
     750  <dl class="fields"> 
     751    <dt>Overrides: 
     752        dict.__delitem__ 
    745753    </dt> 
    746754  </dl> 
     
    761769    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__getitem__">source&nbsp;code</a></span>&nbsp; 
    762770    </td> 
    763   </table> 
    764    
    765   x[y] 
    766   <dl class="fields"> 
    767     <dt>Overrides: 
    768       dict.__getitem__ 
     771  </tr></table> 
     772   
     773  <p>x[y]</p> 
     774  <dl class="fields"> 
     775    <dt>Overrides: 
     776        dict.__getitem__ 
    769777        <dd><em class="note">(inherited documentation)</em></dd> 
    770778    </dt> 
     
    787795    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__setitem__">source&nbsp;code</a></span>&nbsp; 
    788796    </td> 
    789   </table> 
    790    
    791   x[i]=y 
    792   <dl class="fields"> 
    793     <dt>Overrides: 
    794       dict.__setitem__ 
     797  </tr></table> 
     798   
     799  <p>x[i]=y</p> 
     800  <dl class="fields"> 
     801    <dt>Overrides: 
     802        dict.__setitem__ 
    795803        <dd><em class="note">(inherited documentation)</em></dd> 
    796804    </dt> 
     
    810818    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.clear">source&nbsp;code</a></span>&nbsp; 
    811819    </td> 
    812   </table> 
    813    
    814   Remove all items from D. 
    815   <dl class="fields"> 
    816     <dt>Returns:</dt> 
    817         <dd><pre class="literalblock"> 
    818 None 
    819  
    820 </pre></dd> 
    821     <dt>Overrides: 
    822       dict.clear 
     820  </tr></table> 
     821   
     822  <p>Remove all items from D.</p> 
     823  <dl class="fields"> 
     824    <dt>Returns: None</dt> 
     825    <dt>Overrides: 
     826        dict.clear 
    823827        <dd><em class="note">(inherited documentation)</em></dd> 
    824828    </dt> 
     
    838842    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.copy">source&nbsp;code</a></span>&nbsp; 
    839843    </td> 
    840   </table> 
    841    
    842    
    843   <dl class="fields"> 
    844     <dt>Returns:</dt> 
    845         <dd><pre class="literalblock"> 
    846 a shallow copy of D 
    847  
    848 </pre></dd> 
    849     <dt>Overrides: 
    850       dict.copy 
     844  </tr></table> 
     845   
     846   
     847  <dl class="fields"> 
     848    <dt>Returns: a shallow copy of D</dt> 
     849    <dt>Overrides: 
     850        dict.copy 
    851851        <dd><em class="note">(inherited documentation)</em></dd> 
    852852    </dt> 
     
    866866    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.keys">source&nbsp;code</a></span>&nbsp; 
    867867    </td> 
    868   </table> 
    869    
    870    
    871   <dl class="fields"> 
    872     <dt>Returns:</dt> 
    873         <dd><pre class="literalblock"> 
    874 list of D's keys 
    875  
    876 </pre></dd> 
    877     <dt>Overrides: 
    878       dict.keys 
     868  </tr></table> 
     869   
     870   
     871  <dl class="fields"> 
     872    <dt>Returns: list of D's keys</dt> 
     873    <dt>Overrides: 
     874        dict.keys 
    879875        <dd><em class="note">(inherited documentation)</em></dd> 
    880876    </dt> 
     
    894890    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.items">source&nbsp;code</a></span>&nbsp; 
    895891    </td> 
    896   </table> 
    897    
    898    
    899   <dl class="fields"> 
    900     <dt>Returns:</dt> 
    901         <dd><pre class="literalblock"> 
    902 list of D's (key, value) pairs, as 2-tuples 
    903  
    904 </pre></dd> 
    905     <dt>Overrides: 
    906       dict.items 
     892  </tr></table> 
     893   
     894   
     895  <dl class="fields"> 
     896    <dt>Returns: list of D's (key, value) pairs, as 2-tuples</dt> 
     897    <dt>Overrides: 
     898        dict.items 
    907899        <dd><em class="note">(inherited documentation)</em></dd> 
    908900    </dt> 
     
    922914    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.values">source&nbsp;code</a></span>&nbsp; 
    923915    </td> 
    924   </table> 
    925    
    926    
    927   <dl class="fields"> 
    928     <dt>Returns:</dt> 
    929         <dd><pre class="literalblock"> 
    930 list of D's values 
    931  
    932 </pre></dd> 
    933     <dt>Overrides: 
    934       dict.values 
     916  </tr></table> 
     917   
     918   
     919  <dl class="fields"> 
     920    <dt>Returns: list of D's values</dt> 
     921    <dt>Overrides: 
     922        dict.values 
    935923        <dd><em class="note">(inherited documentation)</em></dd> 
    936924    </dt> 
     
    951939    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.has_key">source&nbsp;code</a></span>&nbsp; 
    952940    </td> 
    953   </table> 
    954    
    955    
    956   <dl class="fields"> 
    957     <dt>Returns:</dt> 
    958         <dd><pre class="literalblock"> 
    959 True if D has a key k, else False 
    960  
    961 </pre></dd> 
    962     <dt>Overrides: 
    963       dict.has_key 
     941  </tr></table> 
     942   
     943   
     944  <dl class="fields"> 
     945    <dt>Returns: True if D has a key k, else False</dt> 
     946    <dt>Overrides: 
     947        dict.has_key 
    964948        <dd><em class="note">(inherited documentation)</em></dd> 
    965949    </dt> 
     
    981965    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.__contains__">source&nbsp;code</a></span>&nbsp; 
    982966    </td> 
    983   </table> 
    984    
    985    
    986   <dl class="fields"> 
    987     <dt>Returns:</dt> 
    988         <dd><pre class="literalblock"> 
    989 True if D has a key k, else False 
    990  
    991 </pre></dd> 
    992     <dt>Overrides: 
    993       dict.__contains__ 
     967  </tr></table> 
     968   
     969   
     970  <dl class="fields"> 
     971    <dt>Returns: True if D has a key k, else False</dt> 
     972    <dt>Overrides: 
     973        dict.__contains__ 
    994974        <dd><em class="note">(inherited documentation)</em></dd> 
    995975    </dt> 
     
    1010990    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.get">source&nbsp;code</a></span>&nbsp; 
    1011991    </td> 
    1012   </table> 
    1013    
    1014   d defaults to None. 
    1015   <dl class="fields"> 
    1016     <dt>Returns:</dt> 
    1017         <dd><pre class="literalblock"> 
    1018 D[k] if k in D, else d 
    1019  
    1020 </pre></dd> 
    1021     <dt>Overrides: 
    1022       dict.get 
     992  </tr></table> 
     993   
     994  <p>d defaults to None.</p> 
     995  <dl class="fields"> 
     996    <dt>Returns: D[k] if k in D, else d</dt> 
     997    <dt>Overrides: 
     998        dict.get 
    1023999        <dd><em class="note">(inherited documentation)</em></dd> 
    10241000    </dt> 
     
    10391015    ><span class="codelink"><a href="ndg.security.common.X509-pysrc.html#X500DN.parseSeparator">source&nbsp;code</a></span>&nbsp; 
    10401016    </td> 
    1041   </table> 
     1017  </tr></table> 
    10421018   
    10431019  <p>Attempt to parse the separator character from a given input DN string. 
     
    10461022  <p>/C=UK/O=eScience/OU=CLRC/L=DL/CN=AN Other CN=SUM Oneelse,L=Didcot,  
    10471023  O=RAL,OU=SSTD</p> 
    1048   This function isolates and identifies the character.  - In the above,  
    1049   '/' and ',' respectively 
     1024  <p>This function isolates and identifies the character.  - In the above,  
     1025  '/' and ',' respectively</p> 
    10501026  <dl class="fields"> 
    10511027  </dl> 
     
    10831059    <dt>Value:</dt> 
    10841060      <dd><table><tr><td><pre class="variable"> 
    1085 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">commonName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">CN</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1086  <code class="variable-quote">'</code><code class="variable-string">countryName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">C</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1087  <code class="variable-quote">'</code><code class="variable-string">domainComponent</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">DC</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1088  <code class="variable-quote">'</code><code class="variable-string">emailAddress</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">EMAILADDRESS</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1089  <code class="variable-quote">'</code><code class="variable-string">localityName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">L</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1090  <code class="variable-quote">'</code><code class="variable-string">organisation</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">O</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1091  <code class="variable-quote">'</code><code class="variable-string">organisationalUnitName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">OU</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1092  <code class="variable-quote">'</code><code class="variable-string">stateOrProvinceName</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">ST</code><code class="variable-quote">'</code><code class="variable-op">,</code> 
    1093 <code class="variable-ellipsis">...</code> 
     1061{'commonName': 'CN', 'organisationalUnitName': 'OU', 'organisation': '<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     1062O', 'countryName': 'C', 'emailAddress': 'EMAILADDRESS', 'localityName'<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     1063: 'L', 'stateOrProvinceName': 'ST', 'streetAddress': 'STREET', 'domain<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span> 
     1064Component': 'DC', 'userid': 'UID'} 
    10941065</pre></td></tr></table> 
    10951066</dd> 
     
    11301101    <td align="left" class="footer"> 
    11311102    <a href="epydoc-log.html">Generated by Epydoc 
    1132     3.0beta1 on Mon Dec 17 09:22:45 2007</a> 
     1103    3.0.1 on Thu Sep  4 09:37:44 2008</a> 
    11331104    </td> 
    11341105    <td align="right" class="footer"> 
    1135       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     1106      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     1107        >http://epydoc.sourceforge.net</a> 
    11361108    </td> 
    11371109  </tr> 
     
    11441116  // visible); but by default, we want to hide them.  So hide 
    11451117  // them unless we have a cookie that says to show them. 
    1146   checkCookie() 
     1118  checkCookie(); 
    11471119  // --> 
    11481120</script> 
    1149    
    11501121</body> 
    11511122</html> 
Note: See TracChangeset for help on using the changeset viewer.