Help me learn Python !

Steve Holden sholden at holdenweb.com
Tue Apr 16 16:19:16 EDT 2002


"peter" <REMOVEpeterp100 at hotmail.com> wrote ...
> I'm working out of the Python Web Programming book.  I'm trying to
> figure out how to D/L some of the modules that I need to get my code
> to work (like: lrwp, lrwplib, etc) ???
>
> I'm been to http://www.freecode.com/projects/xitamiwebserver/ and have
> copied some of the module code, but the indentations are all wrong, so
> it doesn't work.  Is there anyway to download all the modules (in
> their correct format).
>
>
> I'm using Windows 2000, and the Xitami webserver.
>
>
I don't ever remember having these problems on my Win98 system. Although
I've now got Win2k I have not yet tried any LRWP stuff. Hold on ...

Nope, don't see any indentation errors -- are you sure you haven't mangled
the code? Note, by the way, you need to change the call

            self.sock.connect(self.host, self.port)

to

            self.sock.connect((self.host, self.port))

before it will run - a change in the library brought it into line with the
documentation, breaking code that took advantage of the opriginal bug. For
the record, I just ran the code and everything works fine: I get five
responses from testlrwp (which responds at "/testapp1"), and then "The URL
you asked for does not exist on this website". All as expected.

Hope this helps.

regards
 Steve







More information about the Python-list mailing list