Changeset 6594 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 11 Aug 2011, 09:28:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6538 r6594 34 34 from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal 35 35 from zc.sourcefactory.basic import BasicSourceFactory 36 from waeup.sirp.image import createWAeUPImageFile 36 37 from waeup.sirp.image.schema import ImageFile 37 from waeup.sirp.image.image import WAeUPImageFile38 38 from waeup.sirp.interfaces import IWAeUPObject 39 39 from waeup.sirp.university.vocabularies import application_categories … … 56 56 __doc__ = u"Invalid email address" 57 57 58 check_email = re.compile(r"[a-zA-Z0-9._%-]+@([a-zA-Z0-9-]+.)*[a-zA-Z]{2,4}").match 58 check_email = re.compile( 59 r"[a-zA-Z0-9._%-]+@([a-zA-Z0-9-]+.)*[a-zA-Z]{2,4}").match 59 60 def validate_email(value): 60 61 if not check_email(value): … … 76 77 provider. 77 78 """ 78 from waeup.sirp.image import createWAeUPImageFile79 79 imagefile = createWAeUPImageFile( 80 80 'placeholder_m.jpg', … … 82 82 ) 83 83 return imagefile 84 return WAeUPImageFile(85 'placeholder_m.jpg', DEFAULT_PASSPORT_IMAGE_MALE)86 84 87 85 class ApplicantContainerProviderSource(BasicSourceFactory):
Note: See TracChangeset for help on using the changeset viewer.