Changeset 5911 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 3 Apr 2011, 01:58:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicants.py
r5763 r5911 24 24 from zope.interface import implementedBy 25 25 from zope.schema.fieldproperty import FieldProperty 26 from waeup.sirp.image.schema import ImageFile 26 27 from waeup.sirp.interfaces import IWAeUPSIRPPluggable 27 28 from waeup.sirp.applicants.interfaces import ( 28 29 IResultEntry, IApplicant, IApplicantPDEEditData 29 30 ) 30 from waeup.sirp.widgets.passportwidget import PassportImage31 31 32 32 class ResultEntry(grok.Context): … … 62 62 self.email = None 63 63 self.phone = None 64 self.passport = False64 self.passport = None 65 65 self.aos = None 66 66 self.subj1 = None … … 130 130 return self.context.passport 131 131 if name == 'passport.jpg': 132 if self.context.passport is not False:132 if self.context.passport is not None: 133 133 return self.context.passport 134 return PassportImage(None)134 return ImageFile() 135 135 return 136 136
Note: See TracChangeset for help on using the changeset viewer.