Changeset 5911 for main/waeup.sirp/trunk


Ignore:
Timestamp:
3 Apr 2011, 01:58:19 (14 years ago)
Author:
uli
Message:

Use ImageFile? instead of PassportImage? and set passport default to
None.

File:
1 edited

Legend:

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

    r5763 r5911  
    2424from zope.interface import implementedBy
    2525from zope.schema.fieldproperty import FieldProperty
     26from waeup.sirp.image.schema import ImageFile
    2627from waeup.sirp.interfaces import IWAeUPSIRPPluggable
    2728from waeup.sirp.applicants.interfaces import (
    2829    IResultEntry, IApplicant, IApplicantPDEEditData
    2930    )
    30 from waeup.sirp.widgets.passportwidget import PassportImage
    3131
    3232class ResultEntry(grok.Context):
     
    6262        self.email = None
    6363        self.phone = None
    64         self.passport = False
     64        self.passport = None
    6565        self.aos = None
    6666        self.subj1 = None
     
    130130            return self.context.passport
    131131        if name == 'passport.jpg':
    132             if self.context.passport is not False:
     132            if self.context.passport is not None:
    133133                return self.context.passport
    134             return PassportImage(None)
     134            return ImageFile()
    135135        return
    136136
Note: See TracChangeset for help on using the changeset viewer.