My mistake. I used the CVS versions of Page and HTTPcontent with the
0.8.1 version of the examples. After downloading the CVS fileupload.py
it works.
M.
Jason Hildebrand wrote:
>On Wed, 2004-12-08 at 19:55 -0500, Michael wrote:
>
>
>>Hi Jason,
>>
>>
>
>
>
>>I just tried the spanking-new HTTPcontent with the WebKit/Examples/
>>fileupload servlet.
>>Here is the traceback.
>>
>>
>
>
>
>>Best, Michael
>>
>>
>
>
>
>
>>Traceback (most recent call last):
>>File "C:/Webware\WebKit\Application.py", line 436, in dispatchRawRequest
>>self.runTransaction(trans)
>>File "C:/Webware\WebKit\Application.py", line 487, in runTransaction
>>self.runTransactionViaServlet(servlet, trans)
>>File "C:/Webware\WebKit\Application.py", line 512, in
>>runTransactionViaServlet
>>servlet.runTransaction(trans)
>>File "C:/Webware\WebKit\Servlet.py", line 42, in runTransaction
>>trans.respond()
>>File "C:/Webware\WebKit\Transaction.py", line 107, in respond
>>self._servlet.respond(self)
>>File "WebKit\HTTPServlet.py", line 38, in respond
>>File "C:/Webware\WebKit\HTTPContent.py", line 65, in respondToPost
>>self._respond(transaction)
>>File "C:/Webware\WebKit\HTTPContent.py", line 96, in _respond
>>self.handleAction(action)
>>File "C:/Webware\WebKit\HTTPContent.py", line 199, in handleAction
>>getattr(self, action)()
>>TypeError: fileupload() takes exactly 2 arguments (1 given)
>>
>>
>
>
>Hi Michael,
>
>I just tried the fileupload example here and it worked fine. Can you tell
>which fileupload() method is being called? The one defined in
>WebKit/Examples/FileUpload.py only takes one parameter, so the error message
>suggests that a _different_ fileupload method is being called.
>
>Can anyone confirm this problem?
>
>peace,
>Jason
>
>
>
>
--
Michael Palmer
Department of Chemistry
University of Waterloo
2oo University Ave West
Waterloo, ON N2L 3G1
Canada
Phone 519 888 4567 ext 5100
Fax 519 746 0435
Office ESC 234
Lab C2-360
Web http://sciborg.uwaterloo.ca/~mpalmer/
|