changeset 25:d5775f3667a2

remove pointless get_response method
author k0s <k0scist@gmail.com>
date Sat, 09 Jan 2010 12:13:04 -0500
parents 6b27461955d1
children f306089d6def
files decoupage/web.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/web.py	Sat Jan 09 12:10:10 2010 -0500
+++ b/decoupage/web.py	Sat Jan 09 12:13:04 2010 -0500
@@ -79,10 +79,6 @@
         else:
             raise exc.HTTPNotFound()
 
-    def get_response(self, text, content_type='text/html'):
-        """construct a response to a GET request"""
-        res = Response(content_type=content_type, body=text)
-        return res
 
     def get(self, request):
         """
@@ -150,7 +146,8 @@
                 return self.fileserver(local_index)
             raise
 
-        return self.get_response(res)
+        return Response(content_type='text/html', body=res)
+
 
     ### internal methods