- Timestamp:
- 9 Jun 2011, 23:58:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6304 r6313 47 47 'static' 48 48 ) 49 DEFAULT_PASSPORT_IMAGE_MALE = WAeUPImageFile( 50 'passport.jpg', 51 open(os.path.join(IMAGE_PATH, 'placeholder_m.jpg')).read(), 52 ) 53 DEFAULT_PASSPORT_IMAGE_FEMALE = WAeUPImageFile( 54 'passport.jpg', 55 open(os.path.join(IMAGE_PATH, 'placeholder_f.jpg')).read(), 56 ) 49 DEFAULT_PASSPORT_IMAGE_MALE = open( 50 os.path.join(IMAGE_PATH, 'placeholder_m.jpg')).read() 51 DEFAULT_PASSPORT_IMAGE_FEMALE = open( 52 os.path.join(IMAGE_PATH, 'placeholder_f.jpg')).read() 57 53 58 54 @provider(schema.interfaces.IContextAwareDefaultFactory) … … 70 66 provider. 71 67 """ 72 return DEFAULT_PASSPORT_IMAGE_MALE 68 return WAeUPImageFile( 69 'placeholder_m.jpg', DEFAULT_PASSPORT_IMAGE_MALE) 73 70 74 71 class ApplicantContainerProviderSource(BasicSourceFactory):
Note: See TracChangeset for help on using the changeset viewer.