title: Accessing self.request.get() from a Function in Python Webapp2 App Engine
body: <p>I am trying to DRY up my webapp2.RequestHandlers by moving POST variable fetching and validation out to a Function.</p>
  
  <p>self.request.get doesnt work in the Function outside of the Handler.  How do I access the POST vars from a Function?</p>
  
  <pre><code>class my_form(webapp2.RequestHandler):
      def post(self):      
          fieldvalidation('field1', 'string')
  
  def fieldvalidation(fieldname, validationoptions):
     x = self.request.get(fieldname)  # &lt;&lt;&lt; does not work outside of class my_form
     .......
  </code></pre>