Ignore:
Timestamp:
9 Jun 2011, 23:59:45 (13 years ago)
Author:
uli
Message:

Use the new default provider for passport fields to return some image
when we traverse to passport images.

File:
1 edited

Legend:

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

    r6304 r6314  
    3030from waeup.sirp.app import University
    3131from waeup.sirp.applicants.interfaces import (
    32     IResultEntry, IApplicant, IApplicantEdit,
    33     DEFAULT_PASSPORT_IMAGE_MALE,
     32    IResultEntry, IApplicant, IApplicantEdit, default_passport_image,
    3433    )
    3534from waeup.sirp.utils.helpers import attrs_to_fields
     
    9392            if self.context.passport is not None:
    9493                return self.context.passport
    95             return DEFAULT_PASSPORT_IMAGE_MALE
     94            return default_passport_image(self.context)
    9695        return
    9796
Note: See TracChangeset for help on using the changeset viewer.