web/formfields.py
changeset 4069 5d149ba65dd0
parent 4044 3876c894e018
child 4101 7fa86fa51229
equal deleted inserted replaced
4068:8f559c00e724 4069:5d149ba65dd0
   585     fieldclass = None
   585     fieldclass = None
   586     rdef = eschema.rdef(rschema, role)
   586     rdef = eschema.rdef(rschema, role)
   587     if role == 'subject':
   587     if role == 'subject':
   588         targetschema = rdef.object
   588         targetschema = rdef.object
   589         if rschema.final:
   589         if rschema.final:
   590             if rdef.internationalizable:
   590             if rdef.get('internationalizable'):
   591                 kwargs.setdefault('internationalizable', True)
   591                 kwargs.setdefault('internationalizable', True)
   592             def get_default(form, es=eschema, rs=rschema):
   592             def get_default(form, es=eschema, rs=rschema):
   593                 return es.default(rs)
   593                 return es.default(rs)
   594             kwargs.setdefault('initial', get_default)
   594             kwargs.setdefault('initial', get_default)
   595     else:
   595     else: