[Zope-CMF] Formlib and multiple forms

Charlie Clark charlie at begeistert.org
Mon Apr 28 13:41:45 EDT 2008


Am 28.04.2008 um 16:39 schrieb Charlie Clark:

>
> Ah, it looks like I've got this working:
>
>    def setUpWidgets(self, ignore_request=False):
> 	self.widgets = []
>        for city in ["Paris", "New York"]:
>            self.adapters = {}
>            self.widgets += setUpWidgets(
>                self.form_fields, city, self.context, self.request,
>                form=self, adapters=self.adapters,  
> ignore_request=ignore_request)
>
> Is this okay? Or is it a bad thing (TM)?


I guess it's a bad thing as the form buttons retain the prefix "form"  
even if the widgets get "Paris" and "New York" prefixes. Oh well, back  
to the drawing board.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the Zope-CMF mailing list