[google-appengine] How webapp2 get checkbox values, and the name is the same ?
Hello everyone ! How webapp2 get checkbox values from jinja2 templates, and the name is the same ? Is the data structure is Dict ? How can get it and pass it ? -- 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] How to display server information on html use kind of Flush use webapp2 ?
How to display server information on html use kind of Flush use webapp2 ? How to print the server information in console reflash the html ? -- 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.
Re: [google-appengine] How to display server information on html use kind of Flush use webapp2 ?
Thank you, is there some way to solve it without use javascript ? 2012/9/25 Shilendra Sharma shilendra...@gmail.com Hi, See this may help to you http://stackoverflow.com/questions/12450868/how-to-print-html-source-to-console-with-phantomjs Regards Thanks Shilendra Sharma +919891343808 shilendra...@googlemail.com On Tue, Sep 25, 2012 at 2:53 PM, forNightmare TF callfatman...@gmail.comwrote: How to display server information on html use kind of Flush use webapp2 ? How to print the server information in console reflash the html ? -- 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. -- 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. -- 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] Problem with Deploy to App Enigne, worked in localhost, internal server Error when deploy
Hi, everyOne : i wrote A web app on GAE, inside of code, may visit otherAddress function, So when i test in localhost, it worked, deployed,show me Internal Server Error I thought may be the server i call inside my code issue, but when i test localhost, i claim the local address eg:172.16.2.150:, but it still not working, localhost can, what's problem ? Thank you 'An error occured while connecting to the server: %s' % e) error: An error occured while connecting to the server: ApplicationError: 2 -- 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] Issue About encode/decode in webapp2 on GAE
Hello, everyone : ) I have a output list like [u'\u7acb\u5f0f\u78e8\u7c89\u673a', u'\u4e94\u8c37\u78e8\u7c89\u673a', u'\u4e94\u8c37\u6742\u7cae\u78e8\u7c89\u673a', u'\u5c0f\u578b\u78e8\u7c89\u673a', u'\u6a61\u80f6\u78e8\u7c89\u673a',] Need to ouput Chinese charactor, and the resources json i parsed are Chinese, so how can i ouput it not \u7acb like above ? Thank you very much -- 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] How to parse the json data and render it use webapp2 on GAE and deployed the search-result app ?
everyone : ) I have A database that can search like http://key.xx.org:10093/?q=; when type the keyword in url (behind the =mark), it can show lots of json data. Now i write a simple webapp on GAE use webapp2 : on the /search page, when i type the keyword, it can parse the jsondata content on the /result page. Here is my part of code : def renderJson(): conn = httplib.HTTPConnection('key.eagle-project.org:10093') conn.request('GET', '/%E7%A0%B4%E7%A2%8E%E6%9C%BA') res = conn.getresponse() data = res.read() j = json.loads(data) return j['data']['group'][0]['resultitem'][0]['word'] class BaseHandler(webapp2.RequestHandler): def render(self, template, **kw): self.response.out.write(render_str(template, **kw)) def write(self, *a, **kw): self.response.out.write(*a, **kw) class Result(BaseHandler): def get(self): #q = self.request.get self.render('result.html', result = renderJson()) app = webapp2.WSGIApplication([ ('/search', Search), ('/result', Result) ], debug=True) How can i parse the params in url and render the content out the result page, the templates that i parse the {{result}},and how parse the search 'q' into the conn.quest ? -- 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: How to parse the json data and render it use webapp2 on GAE and deployed the search-result app ?
and how to deal with the method renderJson() in Result and Search class ? or parse the q ? Thanks everyone : ) please help me 2012/8/17 forNightmare TF callfatman...@gmail.com everyone : ) I have A database that can search like http://key.xx.org:10093/?q=; when type the keyword in url (behind the =mark), it can show lots of json data. Now i write a simple webapp on GAE use webapp2 : on the /search page, when i type the keyword, it can parse the jsondata content on the /result page. Here is my part of code : def renderJson(): conn = httplib.HTTPConnection('key.eagle-project.org:10093') conn.request('GET', '/%E7%A0%B4%E7%A2%8E%E6%9C%BA') res = conn.getresponse() data = res.read() j = json.loads(data) return j['data']['group'][0]['resultitem'][0]['word'] class BaseHandler(webapp2.RequestHandler): def render(self, template, **kw): self.response.out.write(render_str(template, **kw)) def write(self, *a, **kw): self.response.out.write(*a, **kw) class Result(BaseHandler): def get(self): #q = self.request.get self.render('result.html', result = renderJson()) app = webapp2.WSGIApplication([ ('/search', Search), ('/result', Result) ], debug=True) How can i parse the params in url and render the content out the result page, the templates that i parse the {{result}},and how parse the search 'q' into the conn.quest ? -- 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.