zg hu wrote:
> my system is on windows xp+apache 1.3.27+webware 0.8
> when i used fileupload within webware examples,
> it showed error messages:
> 
> C:\down\Webware\WebKit\Examples\FileUpload.pyTraceback (most recent
>   call last): File ".\WebKit\Application.py", line 415, in
> dispatchRequest
>     self.handleGoodURL(transaction)
>   File ".\WebKit\Application.py", line 567, in
> handleGoodURL
>     self.respond(transaction)
>   File ".\WebKit\Application.py", line 776, in respond    
>   transaction.respond() File ".\WebKit\Transaction.py", line 105, in
>     respond self._servlet.respond(self)
>   File ".\WebKit\HTTPServlet.py", line 38, in respond    
>   method(trans) File ".\WebKit\Page.py", line 38, in respondToPost
>     self._respond(transaction)
>   File ".\WebKit\Page.py", line 70, in _respond
>     self.handleAction(action)
>   File ".\WebKit\Page.py", line 265, in handleAction    
> getattr(self, action)() TypeError: fileupload() takes exactly 2
> arguments (1 given) 
> 
> why?

Because the example servlet is broken.  I just checked in a fix to CVS.

Just change the line in FileUpload.py:

        def fileupload(self, trans):

to:

        def fileupload(self):

- Geoff


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to