Index: /main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py	(revision 6289)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py	(revision 6290)
@@ -28,5 +28,5 @@
 
 from zope import schema
-from zope.interface import Interface, Attribute
+from zope.interface import Interface, Attribute, provider
 from zope.component import getUtility, getUtilitiesFor
 from zope.pluggableauth.interfaces import IPrincipalInfo
@@ -56,4 +56,20 @@
     )
 
+@provider(schema.interfaces.IContextAwareDefaultFactory)
+def default_passport_image(context):
+    """A default value factory for ImageFile fields.
+
+    Returns some default image as WAeUPImageFile. We cannot set the
+    default directly in ImageFile fields, as, if we want to set
+    max_size or min_size as well, some utility lookups are needed
+    which are not possible during startup.
+
+    Developers which use IContextAwareDefaultFactories like this one
+    always should make sure that the delivered default meets all
+    constraints of the field that makes use of this default value
+    provider.
+    """
+    return DEFAULT_PASSPORT_IMAGE_MALE
+
 class ApplicantContainerProviderSource(BasicSourceFactory):
     """A source offering all available applicants container types.
@@ -332,5 +348,6 @@
     passport = ImageFile(
         title = u'Passport Photograph',
-        default = DEFAULT_PASSPORT_IMAGE_MALE,
+        #default = DEFAULT_PASSPORT_IMAGE_MALE,
+        defaultFactory = default_passport_image,
         required = True,
         max_size = 20480,
