equal
deleted
inserted
replaced
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: |