--- a/web/formfields.py Wed May 06 06:18:34 2009 -0700
+++ b/web/formfields.py Wed May 06 17:24:48 2009 +0200
@@ -429,7 +429,9 @@
if rschema.is_final():
if rschema.rproperty(eschema, targetschema, 'internationalizable'):
kwargs['internationalizable'] = True
- kwargs['initial'] = rschema.rproperty(eschema, targetschema, 'default')
+ def get_default(form, es=eschema, rs=rschema):
+ return es.default(rs)
+ kwargs['initial'] = get_default
else:
targetschema = rschema.subjects(eschema)[0]
card = rschema.rproperty(targetschema, eschema, 'cardinality')[1]