Hi,
In WebKit/AppServer.py, line 163:
plugIns = map(lambda path: self.serverSidePath(path), plugIns)
should be:
plugIns = map(lambda path, s=self: s.serverSidePath(path), plugIns)
to avoid a nested scope shadowing self warning under python 2.1
In WebKit/ExceptionHandler.py, line 168:
str(self._exc[1]),
should be (something like):
string.join(string.split(str(self._exc[1]), ','), '-'),
Because if str(self._exc[1]) contains any commas, trying to view the error msg
with the admin page interface bombs with number of headers does not match number
of values error (both are split on commas).
PSP/PSPPage.py mixes tabs and spaces for indentation and will not compile.
Two questions:
1) My ISP uses chroot, so while the actual paths are /htdocs/www/morePath, to the
cgi engine, they appear as /morePath. Then the path used within a script to read
a local file, and the one presented as the link to it different. For instance,
in the Admin page to review logged html error messages, the link presented is
rooted at /htdocs/www/Webware/..., where a chroot system it should be
/Webware/... Is there a general mechanism I could implement to deal with this?
If someone would point me in the right direction...
2) Per my previous email, why is os.environ different when running OneShot.cgi vs
WebKit.cgi? (still trying to get AppServer going)
---------- OneShot ----------
DOCUMENT_ROOT : /htdocs/www
HTTP_ACCEPT_ENCODING : gzip, deflate
SERVER_PORT : 80
PATH_TRANSLATED : /htdocs/www/Blennylips/
REMOTE_ADDR : 24.165.66.204
SERVER_SOFTWARE : Apache/1.3.20 (Unix) FrontPage/4.0.4.3 mod_ssl/2.8.4
OpenSSL/0.9.6 PHP/4.0.6
HTTP_ACCEPT_LANGUAGE : en-us
GATEWAY_INTERFACE : CGI/1.1
SERVER_NAME : http://www.blennylips.com
HTTP_CONNECTION : Keep-Alive
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint,
application/pdf, */*
REQUEST_URI : /cgi-bin/bl.cgi/Blennylips/Blennylips
QUERY_STRING :
SERVER_PROTOCOL : HTTP/1.1
PATH_INFO : /Blennylips/Blennylips
HTTP_HOST : http://www.blennylips.com
REQUEST_METHOD : GET
SCRIPT_NAME : /cgi-bin/bl.cgi
SERVER_ADMIN : webmaster@...
SCRIPT_FILENAME : /htdocs/www/cgi-bin/bl.cgi
HTTP_REFERER : http://www.blennylips.com/
REMOTE_PORT : 1545
---------- WebKit ----------
HOME : /
_ : /usr/bin/python
LD_LIBRARY_PATH : /lib
MACHTYPE : i586-pc-linux-gnu
MAIL : /var/spool/mail/rburnham
OSTYPE : linux-gnu
TERMINFO : /lib/terminfo
USER : rburnham
LOGNAME : rburnham
SSH_CLIENT : 24.165.66.204 1443 22
PATH : /bin:/bin/netpbm
HOSTTYPE : i586
HOSTNAME : sentinel.missoulaweb.com
OLDPWD : /
PYTHONPATH :
:/lib/python2.1:/lib/python2.1/plat-linux2:/lib/python2.1/lib-
tk:/lib/python2.1/lib-dynload:/lib/python2.1/site-packages/PIL
SHLVL : 2
PWD : /htdocs/www/Webware/WebKit
SSH_TTY : /dev/pts/0
SHELL : /bin/bash
TERM : vt100
TERMCAP : /lib/termcap
----------------------------
Thanks,
Roger Burnham
rburnham@...
Cambridge Research & Instrumentation
http://www.cri-inc.com
|