Hi, replying to my own query! I realise the problem is straightforward but I don't understand what to do about it. Please excuse if this is a YUI rather than GAE side code problem. The YUI container widget uses an Ajax callback for the success response and that is what is gobbling up my self.response.write.out. So - is there a way in the request handler to send the YUI handshake(assuming success) *and* follow that up (still in the same request handler) with the template rendering below? Don't hold back if this way of doing things shouldn't be going on. Thanks. Alex
On Jul 1, 1:29 pm, Alex <[email protected]> wrote: > Hi, > I think I must be misunderstanding something fundamental! > I am doing this: using GAE+Python Django templates to load up dialog > fields which are then managed by the YUI container widget. This works > fine for the load. On 'submit' the correct values are posted correctly > back to my python request handler. However I then want to display some > further content : > template_date ={ .... some new stuff ....} > template_path = os.path.join(os.path.dirname(__file__), > 'myfile.html') > self.response.headers['Content-Type'] = 'text/html' > self.response.out.write(template.render(template_path, > template_data)) > > This outputs the correct response, myfile.html but dumps it to the > console rather than rendering it in the browser. I have been round and > round this without success. (btw I have stripped myfile.html to just > printing out 'hello world' without success). I don't have to add > myfile.html to app.yaml do I? Any insight so welcome. > > Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
