Ignore:
Timestamp:
14 Mar 2011, 07:43:30 (14 years ago)
Author:
uli
Message:

Remove implementation and tests of addApplicantsContainer method.

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

Legend:

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

    r5815 r5867  
    3333    """
    3434    grok.implements(IApplicantsRoot)
    35 
    36     def addApplicantsContainer(self, container, name=None):
    37         """Add an applicants container.
    38 
    39         Adds an applicants container that implements `interface`
    40         under the name `name`.
    41 
    42         `container`
    43           the container instance to be added. Should
    44           implement :class:`IApplicantsContainer`.
    45 
    46         `name`
    47           the name under which the container will be accessible. We
    48           usually use names like ``pume_2011`` to indicate, that the
    49           new container will contain student applicants for a
    50           certain screening type (``pume``) and of the year 2011.
    51 
    52         """
    53         self[name] = container
    54         return
    5535
    5636class ApplicantsPlugin(grok.GlobalUtility):
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py

    r5814 r5867  
    5757        return
    5858
    59     def test_add_container(self):
    60         root = ApplicantsRoot()
    61         fake_container = object()
    62         root.addApplicantsContainer(fake_container, name='foo')
    63         self.assertTrue(root['foo'] ==  fake_container)
    64         return
    65 
    6659class ApplicantsRootPluginTestCase(unittest.TestCase):
    6760    def create_logger(self):
Note: See TracChangeset for help on using the changeset viewer.