Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from google.appengine.ext import webapp
- from google.appengine.ext.webapp.util import run_wsgi_app
- class data:
- s=''
- class test(webapp.RequestHandler):
- d=data # d.s Stores data!...smth like CALL-BY-REFERENCE?!
- s='' # s resets on every run
- def get(self):
- self.response.out.write(self.d.s+'\t\t'+self.s+"<br>")
- self.d.s=self.s=self.request.remote_addr
- self.response.out.write(self.d.s+'\t\t'+self.s)
- application = webapp.WSGIApplication(
- [('/', test)],
- debug=True)
- def main():
- run_wsgi_app(application)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment