I'm in a situation where I do not have a suitable "self". E.g. In a mapper module where I've got a deferred.defer running. This module isn't a webapp.requesthandler and thus I can't do a self.response.out.write. But within my codes, I still need to render something.
(yeah, I know that deferred.defer and render do not actually go together...) Thanks! On 31 July 2010 00:03, Geoffrey Spear <[email protected]> wrote: > Don't use print statements. Your framework will have a way to write > to the response (with webapp, self.response.out.write). > > On Jul 30, 11:45 am, TohSiang© <[email protected]> wrote: > > Can anyone tell me how I can suppress all the "extra" information that > comes > > with a print statement? > > > > Whenever I issue a print command, the following will ALWAYS appear: > > *Status: 200 OK* > > ***Content-Type: text/html; charset=utf-8* > > ***Cache-Control: no-cache* > > ***Expires: Fri, 01 Jan 1990 00:00:00 GMT **Content-Length: 0* > > * > > * > > It is causing my post-print statements (such as template.render) to screw > > up. > > Please help. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
