Rather than just sending email, you should post this as a patch on
SourceForge. Someone will eventually review it and if it looks good, will
check it into CVS.
Sending patches by email isn't a good idea -- it's too easy for them to get
lost and there's no way to assign a particular developer to look into it.
Also, it would be helpful to upload a unified diff (diff -u) or context diff
(diff -c) of the whole file instead of just a code snippet.
- Geoff
[EMAIL PROTECTED] wrote:
> Can someone reply to this. I depend on it and it's getting old now.
>
> --> Friday, August 29, 2003, 12:09:38 PM,
> [EMAIL PROTECTED] wrote:
>
>> req.serverSidePath accepts relative site paths fine, but does not
>> work with an absolute site path.
>
>> [snips]
>
>> res.write(req.serverSidePath('/index.psp')+'<br>')
>> # it returns '\index.psp' instead of the expected absolute path
>
> This is my fix... (with tabs to match HTTPRequest.py)
>
> #
> ---------------------------------------------------------------------
>
> # kaishaku fix
> def serverSidePath(self, path=None):
> """ Returns the absolute server-side path
> of the request. If the optional path is passed in, then it is
> joined with the server side directory to form a path relative
> to the object.
> """
> if not hasattr(self, '_serverSidePath'):
> app = self._transaction.application()
> self._serverSidePath,
> self._serverSideContextPath, self._contextName =
> app.serverSideInfoForRequest(self)
> if path:
> if path[0]=='/' or path[0]=='\\':
> return
> os.path.normpath(self._environ['DOCUMENT_ROOT']+path)
> else: return
> os.path.normpath(os.path.join(os.path.dirname(self._serverSide Path),
> path)) else:
> return self._serverSidePath
>
> #
> ---------------------------------------------------------------------
>
> -Kai
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by OSDN developer relations
> Here's your chance to show off your extensive product knowledge
> We want to know what you know. Tell us and you have a chance
> to win $100
> http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss