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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.