[google-appengine] Re: Python XForms and Google App Engine?
Hi Neal, Yes I would recommend using self.request.body. From there you could parse it using something like xml.etree from xml.etree import ElementTree form_data = ElementTree.fromstring(self.request.body) Just a suggestion. Cheers, Jeff On May 20, 7:02 pm, Neal wrote: > So far, this seems the way to get the xml into Python: > > data = self.request.body > > # the following is just to display the xml > fixline = data.replace("<","<"); > fixline = fixline.replace(">",">"); > self.response.out.write( > "Post3: Python found your submitted value = " + > fixline + "" > ) > > Is this the "best" way to get the string of xml? > > Neal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Python XForms and Google App Engine?
So far, this seems the way to get the xml into Python: data = self.request.body # the following is just to display the xml fixline = data.replace("<","<"); fixline = fixline.replace(">",">"); self.response.out.write( "Post3: Python found your submitted value = " + fixline + "" ) Is this the "best" way to get the string of xml? Neal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Python XForms and Google App Engine?
Hi Neal, I'm by no means an XForms expert, but they can be configured to send the form data to your app in a similar format to traditional HTML forms. You could also have the XForm send the data as XML and use a standard XML library to parse the input. (I'm not sure how many web browsers support XForms or the various settings...) Happy coding, Jeff On May 20, 7:26 am, Neal wrote: > Or maybe my question is off-base. Maybe XForms just does a regular > post to a server just like an HTML form? > Ideas? > > Neal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Python XForms and Google App Engine?
Or maybe my question is off-base. Maybe XForms just does a regular post to a server just like an HTML form? Ideas? Neal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---