Changeset 5825 for main/waeup.sirp/trunk


Ignore:
Timestamp:
9 Mar 2011, 14:20:54 (14 years ago)
Author:
uli
Message:

Add docstring to tell what's going on when getting a list of
applicants container providers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r5824 r5825  
    113113       
    114114    def getContainerProviders(self):
    115 
     115        """Get a list of applicants container providers.
     116
     117        Applicants container providers are named utilities that help
     118        to create applicants containers of different types
     119        (JAMB-based, non-JAMB-based, etc.).
     120
     121        The list returned contains dicts::
     122
     123          {'name': <utility_name>,
     124           'provider': <provider instance>}
     125
     126        where `utility_name` is the name under which the respective
     127        provider utility is registered and `provider` is the real
     128        provider instance.
     129
     130        The `utility_name` can be used to lookup the utility anew (for
     131        instance after submitting a form) and the `provider` instance
     132        can be used to create new instances of the respective
     133        applicants container type.
     134        """
    116135        providers = getAllUtilitiesRegisteredFor(IApplicantContainerProvider)
    117136        result = [
Note: See TracChangeset for help on using the changeset viewer.