Changeset 7089
- Timestamp:
- 12 Nov 2011, 06:47:00 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7086 r7089 68 68 IApplicant, IApplicantPrincipal,IApplicantEdit, IApplicantsRoot, 69 69 IApplicantsContainer, IApplicantsContainerAdd, application_types_vocab, 70 DEFAULT_PASSPORT_IMAGE_MALE, MAX_UPLOAD_SIZE,70 DEFAULT_PASSPORT_IMAGE_PATH, MAX_UPLOAD_SIZE, 71 71 ) 72 72 from waeup.sirp.applicants.workflow import INITIALIZED, STARTED … … 655 655 img = getUtility(IExtFileStore).getFileByContext(self.context) 656 656 if img is None: 657 img = DEFAULT_PASSPORT_IMAGE_MALE657 img = open(DEFAULT_PASSPORT_IMAGE_PATH, 'rb') 658 658 doc_img = Image(img.name, width=4*cm, height=3*cm, kind='bound') 659 659 story.append(doc_img) … … 868 868 if image is None: 869 869 # show placeholder image 870 return DEFAULT_PASSPORT_IMAGE_MALE870 return open(DEFAULT_PASSPORT_IMAGE_PATH, 'rb').read() 871 871 return image -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7086 r7089 48 48 'static' 49 49 ) 50 DEFAULT_PASSPORT_IMAGE_MALE = open( 51 os.path.join(IMAGE_PATH, 'placeholder_m.jpg')) 50 51 #: Filesystem path to default passport image 52 DEFAULT_PASSPORT_IMAGE_PATH = os.path.join(IMAGE_PATH, 'placeholder_m.jpg') 52 53 53 54 #: Maximum upload size for applicant passport photographs (in bytes)
Note: See TracChangeset for help on using the changeset viewer.