Thanks... I'm aware of the security implications, and how to redirect
stdout.  I was hoping that code already existed to do this, since it seemed
like it could be pretty useful.  

The python_logging module you pointed me at looks interesting, and may also
be helpful.  I think that it would be nice, however, to capture the output
associated with a specific PSP.  Perhaps something like a page option:
<%@page debug="log"%> and then output would be logged, and available in the
error page.  

Anyway, if I get ambitious in that area while debugging some PSP, I may try
to make something like that work.  Right now I have my hands full with other
issues.

Thanks again...

-Stuart-

> -----Original Message-----
> From: Ian Bicking [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 2:15 PM
> To: Edmund Lian
> Cc: Stuart Donaldson; Webware "Discussion (E-mail)
> Subject: RE: [Webware-discuss] tools to debug PSP code?
> 
> 
> On Mon, 2002-11-25 at 15:43, Edmund Lian wrote:
> > Developing applications without shell access seems a bit masochistic
> > though... as a matter of curiosity, how does he/she edit 
> the PSP files? On
> > the balance I think the user is probably better off 
> developing the app on
> > his/her local machine prior to upload the PSP scripts to 
> the other machine
> > that he/she doesn't have shell access to.
> 
> If the user doesn't get access to a shell for concern for security, it
> should be noted that giving the user access to PSP gives them 
> very easy
> access to a shell-like environment.  
> 
> But anyway, the OP might be able to fiddle with the 
> writeExceptionReport
> method of Page.  You could capture output of print, for instance, and
> then spit it out in that method.
> 
> For a more general solution, I'd be interested in using the (to be
> standard, I believe) logging module found at: 
>   http://www.red-dove.com/python_logging.html
> 
> sys.stdout could be plugged in to this system, and in turn make access
> to all print statements available.
> 
>   Ian
> 


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to