Ignore:
Timestamp:
12 Mar 2011, 08:44:09 (14 years ago)
Author:
Henrik Bettermann
Message:

ApplicantsContainerProvider? not ApplicantContainerProvider?

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
3 edited

Legend:

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

    r5845 r5846  
    4242from waeup.sirp.applicants.interfaces import (
    4343    IApplicant, IApplicantPrincipal, IApplicantPDEEditData,
    44     IApplicantsRoot, IApplicantsContainer, IApplicantContainerProvider,
     44    IApplicantsRoot, IApplicantsContainer, IApplicantsContainerProvider,
    4545    )
    4646from waeup.sirp.widgets.passportwidget import (
     
    152152            return
    153153        # Add new applicants container...
    154         provider = getUtility(IApplicantContainerProvider,
     154        provider = getUtility(IApplicantsContainerProvider,
    155155                              name=providername)
    156156        container = provider.factory()
     
    185185        applicants container type.
    186186        """
    187         providers = getAllUtilitiesRegisteredFor(IApplicantContainerProvider)
     187        providers = getAllUtilitiesRegisteredFor(IApplicantsContainerProvider)
    188188        result = [
    189189            {'name': getattr(x, 'grokcore.component.directive.name'),
     
    327327   
    328328#class AddApplicant(WAeUPAddFormPage):
    329 #    grok.context(IApplicantContainer)
     329#    grok.context(IApplicantsContainer)
    330330#    grok.name('add')
    331331#    form_fields = grok.AutoFields(IApplicant)
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py

    r5821 r5846  
    2525import grok
    2626from waeup.sirp.applicants.interfaces import (
    27     IApplicantsContainer, IApplicantContainerProvider,
     27    IApplicantsContainer, IApplicantsContainerProvider,
    2828    )
    2929
     
    8484    """A utility that provides basic applicants containers.
    8585    """
    86     grok.implements(IApplicantContainerProvider)
     86    grok.implements(IApplicantsContainerProvider)
    8787    grok.name('waeup.sirp.applicant.ApplicantsContainer')
    8888
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r5839 r5846  
    760760        """Return the JAMB registration no."""
    761761
    762 class IApplicantContainerProvider(Interface):
     762class IApplicantsContainerProvider(Interface):
    763763    """A provider for applicants containers.
    764764
     
    781781
    782782      import grok
    783       from waeup.sirp.applicants.interfaces import IApplicantContainerProvider
     783      from waeup.sirp.applicants.interfaces import IApplicantsContainerProvider
    784784
    785785      class MyContainerProvider(grok.GlobalUtility):
    786           grok.implements(IApplicantContainerProvider)
     786          grok.implements(IApplicantsContainerProvider)
    787787          grok.name('MyContainerProvider') # Must be unique
    788788          factory = MyContainer # A class implementing IApplicantsContainer
     
    794794      >>> from zope.component import getAllUtilitiesRegisteredFor
    795795      >>> from waeup.sirp.applicants.interfaces import (
    796       ...     IApplicantContainerProvider)
     796      ...     IApplicantsContainerProvider)
    797797      >>> all_providers = getAllUtilitiesRegisteredFor(
    798       ...     IApplicantContainerProvider)
     798      ...     IApplicantsContainerProvider)
    799799      >>> all_providers
    800800      [<MyContainerProvider object at 0x...>]
     
    803803
    804804      >>> from zope.component import getUtility
    805       >>> p = getUtility(IApplicantContainerProvider, name='MyProvider')
     805      >>> p = getUtility(IApplicantsContainerProvider, name='MyProvider')
    806806      >>> p
    807807      <MyContainerProvider object at 0x...>
Note: See TracChangeset for help on using the changeset viewer.