Thanks a lot, Costas! I'll try this in the next days. Cheers Franz
> -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag von > Costas Malamas > Gesendet: Montag, 04. M�rz 2002 14:04 > An: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Betreff: Re: [Webware-discuss] FunFormKit: Anyone rendering more than 1 > form per page? > > > > I have had exactly the same problem Friday. I narrowed it down to Form.py > FormServlet._processForm circa line 145: > << > if not currentForm: > if not self._defaultFormDefinition: > """ > return getattr(self, > self._defaultFormRenderMethod)() > """ > return self._defaultFormRenderMethod() > else: > return getattr(self, > self._defaultFormDefinition.renderMethodName())() > >>> > > The commented out line in the if is the original code, the one > below is my > interpretation. I believe that the else block must also be > changed in the > same way, but I haven't tested it. Python 2.1.1, WK 0.6.1b1, FFK 0.3.1 > > Thanks, > > Costas > > > > > > >From: "F. GEIGER" <[EMAIL PROTECTED]> > >Reply-To: <[EMAIL PROTECTED]> > >To: "Webware-discuss" <[EMAIL PROTECTED]> > >Subject: [Webware-discuss] FunFormKit: Anyone rendering more than 1 form > >per page? > >Date: Sun, 3 Mar 2002 16:51:07 +0100 > > > >Rendering more than one form in one page works. So I have two > forms now on > >one page. Their names are "FormOne" and "FormTwo". > > > >Now, when I press a button on one of those two forms, > _processForm() fails: > > > >Traceback (most recent call last): > > File ".\WebKit\Application.py", line 387, in dispatchRequest > > self.handleGoodURL(transaction) > > File ".\WebKit\Application.py", line 535, in handleGoodURL > > self.respond(transaction) > > File ".\WebKit\Application.py", line 711, in respond > > transaction.respond() > > File ".\WebKit\Transaction.py", line 93, in respond > > self._servlet.respond(self) > > File ".\WebKit\HTTPServlet.py", line 37, in respond > > method(trans) > > File "D:\Webware\WebKit\ExTract\Template.py", line 47, in > respondToPost > > Page.respondToPost(self, transaction) > > File ".\WebKit\Page.py", line 38, in respondToPost > > self._respond(transaction) > > File ".\WebKit\Page.py", line 67, in _respond > > self.writeHTML() > > File ".\WebKit\Page.py", line 129, in writeHTML > > self.writeBody() > > File ".\WebKit\Page.py", line 190, in writeBody > > self.writeBodyParts() > > File "D:\Webware\WebKit\ExTract\Template.py", line 150, in > >writeBodyParts > > self.writeContent() > > File "D:\Webware\FunFormKit\Form.py", line 138, in _processForm > > currentForm = self._formDefinitions[req.field('_formID_')] > >TypeError: unhashable type > > > > > >The line causing this is > >currentForm = self._formDefinitions[req.field('_formID_')] > > > >When I check what's used as the key, I see that req.field('_formID_') > >returns > >["FormOne", "FormTwo"]. > > > >I guess it should return one of those strings and not a list of them. Any > >hint, what I did wrong? > > > > > >Best regards > >Franz GEIGER > > > > > > > >-------------------------------------------------------- > >DATEC Datentechnik GmbH > > Software Development > > Retrieval Computing > >A-6890 LUSTENAU, Schmiedgasse 7 > >Tel +43 5577 630 04-0 > >Fax +43 5577 630 04-40 > >Mobile > > +43 664 214 57 43 > >E-Mail > > [EMAIL PROTECTED] > >WWW www.datec.at (in Partnerschaft mit Amazon.de) > > > > > > > > > >_______________________________________________ > >Webware-discuss mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/webware-discuss > > > _________________________________________________________________ > Join the world�s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
