~nchohan/appscale/zk3.3.4

« back to all changes in this revision

Viewing changes to AppServer/lib/webapp2/tests/resources/handlers.py

  • Committer: Chris Bunch
  • Date: 2012-02-17 08:19:21 UTC
  • mfrom: (787.2.3 appscale-raj-merge)
  • Revision ID: cgb@cs.ucsb.edu-20120217081921-pakidyksaenlpzur
merged with main branch, gaining rabbitmq and upgrades for hbase, cassandra, and hypertable, as well as upgrading to gae 1.6.1 for python and go

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import webapp2
 
2
 
 
3
 
 
4
class LazyHandler(webapp2.RequestHandler):
 
5
    def get(self, **kwargs):
 
6
        self.response.out.write('I am a laaazy view.')
 
7
 
 
8
 
 
9
class CustomMethodHandler(webapp2.RequestHandler):
 
10
    def custom_method(self):
 
11
        self.response.out.write('I am a custom method.')
 
12
 
 
13
 
 
14
def handle_exception(request, response, exception):
 
15
    return webapp2.Response(body='Hello, custom response world!')