Ignore:
Timestamp:
10 Jun 2011, 20:25:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Source titles should have an initial capital letter to conform with the zope.formlib convention. This is easier than patching the zope.formlib (and its translations).

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

Legend:

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

    r6289 r6340  
    7373    def test_GenderSource_term_male(self):
    7474        term = self.terms.getTerm('m')
    75         assert term.title == 'male'
     75        assert term.title == 'Male'
    7676        assert term.token == 'm'
    7777        assert term.value == 'm'
     
    7979    def test_GenderSource_term_female(self):
    8080        term = self.terms.getTerm('f')
    81         assert term.title == 'female'
     81        assert term.title == 'Female'
    8282        assert term.token == 'f'
    8383        assert term.value == 'f'
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py

    r6256 r6340  
    7575class GenderSource(BasicSourceFactory):
    7676    """A gender source delivers basically a mapping
    77        ``{'m': 'male', 'f': 'female'}``
     77       ``{'m': 'Male', 'f': 'Female'}``
    7878
    7979       Using a source, we make sure that the tokens (which are
     
    8989    def getTitle(self, value):
    9090        if value == 'm':
    91             return 'male'
     91            return 'Male'
    9292        if value == 'f':
    93             return 'female'
     93            return 'Female'
Note: See TracChangeset for help on using the changeset viewer.