Hi,
there's two bugs in Servlet.serverSidePath() in Servlet.py.

1- it assumes that the servlet obj has the attribute 
'_request', but this isn't set unless the object also 
happens to inherit from the Page class.

2- the current implementation doesn't allow for use of 
serverSidePath until at least one request has been 
processed. Therefore, Cheetah can't get 
serverSidePath(includeFilePath) at start-up.

I suggest changing the implementation so that the 
Application class sets servlet._serverSidePath at startup 
and then removing the following lines from 
.serverSidePath() in Servlet.py:
                if self._serverSidePath is None:
                        self._serverSidePath = self._request.serverSidePath()

Cheers,
Tavis

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to