> I think he wants to re-use an existing factory form, so presumably couldn't
> specify/change the default values after the form has already been created,
> right?

Correct. The code is more like:
def frm():
    form=build_form(readonly=True)
    return dict(form=form)

build_form is defined elsewhere. And the defaults are already sitting
in form.vars. Having to call form.accepts to show the defaults I set
in code confuses me but if this is what it takes I can live with that.
Only if readonly worked. I can possibly rewrite build_form to set the
defaults like Massimo suggests but I thought what I am doing is pretty
much 100% by the book. Thanks again for helping...

Reply via email to