Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Given that requests occasionally come in that request or would require the ability to get a string representation of a PSP page, rather than output being sent as response, should add new feature for doing this.
This would eliminate the need to use fake request wrappers to capture PSP page output. Such a hack has been described in:
http://www.modpython.org/pipermail/mod_python/2005-May/018230.html
but would be better if the code generated by the psp_parser.c file would instead of generating req.write() operate via a proxy variable, eg. _output.write(), where 'output_' would be 'req' for the normal case but could be replaced by the user through an argument to PSP object.