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
fgeiger@...
WWW http://www.datec.at (in Partnerschaft mit Amazon.de)
|