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.server.conf.userRoles.UserRoles-class.html

    r3153 r4245  
    6161</table> 
    6262<!-- ==================== CLASS DESCRIPTION ==================== --> 
    63 <h1 class="epydoc">Class UserRoles</h1><span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles">source&nbsp;code</a></span><br /><br /> 
     63<h1 class="epydoc">Class UserRoles</h1><p class="nomargin-top"><span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles">source&nbsp;code</a></span></p> 
    6464<center> 
    65 <center>  <map id="uml_class_diagram_for_ndg_secu_164" name="uml_class_diagram_for_ndg_secu_164"> 
    66 <area shape="rect" href="ndg.security.server.AttAuthority.AAUserRoles&#45;class.html" title="An abstract base class to define the user roles interface to an Attribute Authority." alt="" coords="15,11,67,27"/> 
    67 <area shape="rect" href="ndg.security.server.conf.userRoles.UserRoles&#45;class.html" title="User Roles class dynamic import for Attribute Authority." alt="" coords="15,56,67,72"/> 
     65<center>  <map id="uml_class_diagram_for_ndg_secu_223" name="uml_class_diagram_for_ndg_secu_223"> 
     66<area shape="rect" href="ndg.security.server.AttAuthority.AAUserRoles&#45;class.html" title="An abstract base class to define the user roles interface to an Attribute Authority." alt="" coords="59,10,213,42"/> 
     67<area shape="rect" href="ndg.security.server.conf.userRoles.UserRoles&#45;class.html#__init__" title="Customize for example to initialise site user repository settings" alt="" coords="17,97,255,116"/> 
     68<area shape="rect" href="ndg.security.server.conf.userRoles.UserRoles&#45;class.html#userIsRegistered" title="Convenience method NOT used by Attribute Authority API" alt="" coords="17,116,255,134"/> 
     69<area shape="rect" href="ndg.security.server.conf.userRoles.UserRoles&#45;class.html#getRoles" title="Allocate required roles to user given by userId." alt="" coords="17,134,255,153"/> 
     70<area shape="rect" href="ndg.security.server.conf.userRoles.UserRoles&#45;class.html" title="User Roles class dynamic import for Attribute Authority." alt="" coords="16,72,256,154"/> 
    6871</map> 
    69   <img src="uml_class_diagram_for_ndg_secu_164.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_164" ismap="ismap" class="graph-without-title" /> 
    70 </center></center> 
     72  <img src="uml_class_diagram_for_ndg_secu_223.gif" alt='' usemap="#uml_class_diagram_for_ndg_secu_223" ismap="ismap" class="graph-without-title" /> 
     73</center> 
     74</center> 
    7175<hr /> 
    72 User Roles class dynamic import for Attribute Authority.  Customize  
    73   according to your site's user role allocation system<br /><br /> 
     76<p>User Roles class dynamic import for Attribute Authority.  Customize  
     77  according to your site's user role allocation system</p> 
    7478 
    7579<!-- ==================== INSTANCE METHODS ==================== --> 
     
    98102          <td><span class="summary-sig"><a href="ndg.security.server.conf.userRoles.UserRoles-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 
    99103        <span class="summary-sig-arg">propertiesFilePath</span>=<span class="summary-sig-default">None</span>)</span><br /> 
    100       Customize for example to initialise site user repository  
    101       settings</td> 
     104      Customize for example to initialise site user repository settings</td> 
    102105          <td align="right" valign="top"> 
    103106            <span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles.__init__">source&nbsp;code</a></span> 
     
    178181    ><span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles.__init__">source&nbsp;code</a></span>&nbsp; 
    179182    </td> 
    180   </table> 
     183  </tr></table> 
    181184   
    182   Customize for example to initialise site user repository settings 
     185  <p>Customize for example to initialise site user repository settings</p> 
    183186  <dl class="fields"> 
    184187    <dt>Parameters:</dt> 
    185188    <dd><ul class="nomargin-top"> 
    186         <li><strong class="pname"><code>propertiesFilePath</code></strong> (string) - file path to a properties from which to initialise the user  
    187           roles interface. e.g. the file could contain user database  
    188           settings.  The file path passed corresponds to the  
    189           userRolesPropFile element in the attAuthorityProperties.xml  
    190           file.</li> 
     189        <li><strong class="pname"><code>propertiesFilePath</code></strong> (string) - file path to a properties from which to initialise the user roles 
     190          interface. e.g. the file could contain user database settings.   
     191          The file path passed corresponds to the userRolesPropFile element 
     192          in the attAuthorityProperties.xml file.</li> 
    191193    </ul></dd> 
    192194    <dt>Overrides: 
    193       <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#__init__">AttAuthority.AAUserRoles.__init__</a> 
     195        <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#__init__">AttAuthority.AAUserRoles.__init__</a> 
    194196    </dt> 
    195197  </dl> 
     
    209211    ><span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles.userIsRegistered">source&nbsp;code</a></span>&nbsp; 
    210212    </td> 
    211   </table> 
     213  </tr></table> 
    212214   
    213   Convenience method NOT used by Attribute Authority API 
     215  <p>Convenience method NOT used by Attribute Authority API</p> 
    214216  <dl class="fields"> 
    215217    <dt>Parameters:</dt> 
     
    220222        <dd>True if user is registered</dd> 
    221223    <dt>Overrides: 
    222       <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#userIsRegistered">AttAuthority.AAUserRoles.userIsRegistered</a> 
     224        <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#userIsRegistered">AttAuthority.AAUserRoles.userIsRegistered</a> 
    223225    </dt> 
    224226  </dl> 
     
    238240    ><span class="codelink"><a href="ndg.security.server.conf.userRoles-pysrc.html#UserRoles.getRoles">source&nbsp;code</a></span>&nbsp; 
    239241    </td> 
    240   </table> 
     242  </tr></table> 
    241243   
    242   Allocate required roles to user given by userId.  Default to safe  
    243   option of returning no user roles i.e. an empty list: [] 
     244  <p>Allocate required roles to user given by userId.  Default to safe  
     245  option of returning no user roles i.e. an empty list: []</p> 
    244246  <dl class="fields"> 
    245247    <dt>Parameters:</dt> 
     
    250252        <dd>roles to which user is entitled</dd> 
    251253    <dt>Overrides: 
    252       <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#getRoles">AttAuthority.AAUserRoles.getRoles</a> 
     254        <a href="ndg.security.server.AttAuthority.AAUserRoles-class.html#getRoles">AttAuthority.AAUserRoles.getRoles</a> 
    253255    </dt> 
    254256  </dl> 
     
    288290    <td align="left" class="footer"> 
    289291    <a href="epydoc-log.html">Generated by Epydoc 
    290     3.0beta1 on Mon Dec 17 09:22:48 2007</a> 
     292    3.0.1 on Thu Sep  4 09:37:50 2008</a> 
    291293    </td> 
    292294    <td align="right" class="footer"> 
    293       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> 
     295      <a target="mainFrame" href="http://epydoc.sourceforge.net" 
     296        >http://epydoc.sourceforge.net</a> 
    294297    </td> 
    295298  </tr> 
     
    302305  // visible); but by default, we want to hide them.  So hide 
    303306  // them unless we have a cookie that says to show them. 
    304   checkCookie() 
     307  checkCookie(); 
    305308  // --> 
    306309</script> 
    307    
    308310</body> 
    309311</html> 
Note: See TracChangeset for help on using the changeset viewer.