It works for me, too.
Thanks!
L.
On Nov 5, 9:08 pm, "Brent Pedersen" <[EMAIL PROTECTED]> wrote:
> this fixes the problem for me:
>
> diff --git a/web/wsgiserver/__init__.py b/web/wsgiserver/__init__.py
> index 050447f..364dcb5 100644
> --- a/web/wsgiserver/__init__.py
> +++ b/web/wsgiserver/__init__.py
> @@ -714,6 +714,10 @@ if sys.version_info[:3] >= (2, 5, 2):
> class CP_fileobject(socket._fileobject):
> """Faux file object attached to a socket object."""
>
> + def __init__(self, *args, **kwargs):
> + super(CP_fileobject, self).__init__(*args, **kwargs)
> + self._rbuf = StringIO.StringIO()
> +
> def sendall(self, data):
> """Sendall for non-blocking sockets."""
> while data:
>
> On Wed, Nov 5, 2008 at 12:47 PM, Lindsey Smith <[EMAIL PROTECTED]> wrote:
>
> > On Nov 4, 4:59 am, "leela vadlamudi" <[EMAIL PROTECTED]>
> > wrote:
> >> On Tue, Nov 4, 2008 at 6:11 PM, Steve Howe <[EMAIL PROTECTED]> wrote:
>
> >> > Hello all,
> >> >> On Mon, Nov 3, 2008 at 1:45 AM, Yesudeep Mangalapilly
> >> > Now it shows this (even onhttp://webpy.org/cookbook/helloworld):
>
> >> > Traceback (most recent call last):
> >> > File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py", line
> >> > 1159, in communicate
> >> > req.parse_request()
> >> > File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py", line
> >> > 304, in parse_request
> >> > self._parse_request()
> >> > File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py", line
> >> > 317, in _parse_request
> >> > request_line = self.rfile.readline()
> >> > File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py", line
> >> > 212, in readline
> >> > data = self.rfile.readline(256)
> >> > File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py", line
> >> > 806, in readline
> >> > buf.seek(0, 2) # seek end
> >> > AttributeError: 'str' object has no attribute 'seek'
>
> >> > I'm using Python 2.5.2.
>
> >> That's working on my machine! I am also using python 2.5.2
>
> > I see the same failure with Python 2.5.2 (Ubuntu Hardy), the latest
> > web.py and the cookbook hello world.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---