RE: standalone wiki

"Michael Iles" <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Organization Kinitos Inc.
Message-ID <[email protected]>
From: Michael Geary [mailto:[email protected]] 

> What about redirecting stderr and stdout in Python code?

Agreed. As a newcomer to Python my initial question was whether there was a
better approach than this. I did a bit of searching and I'm certainly not
the first to think that pythonw should do something different than it does.
It seems to me that an argument to pythonw that redirected stdout/stderr to
a named file would satisfy 99% of the complainers, but that's a different
discussion.

It would be nice if this functionality were incorporated into moin.py: 

  (1) Check sys.stdout.isatty() or sys.stdout.fileno() to see whether
      it's valid.

  (2) If not, assign objects to sys.stdout and sys.stderr that write
      to logfiles.

  (3) And, provide a means to suppress the spinning bar in httpdmain.py.

Mike.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.