title: Error TypeError: login_submit() takes exactly 1 argument (0 given)
body: <p>I have made a simple program using Bottle framework. I am getting this error: </p>
  
  <blockquote>
    <p>'TypeError: login_submit() takes exactly 1 argument (0 given)'</p>
  </blockquote>
  
  <p>The code is:</p>
  
  <pre><code># -*- coding: cp1252 -*-
  import codecs
  from bottle import route, run, template
  
  
  @route('/login')
  def login_form():
      return '''&lt;form method="POST" action="/login"&gt;
              &lt;input name="name" type="text" /&gt;
              &lt;input name="password" type="password" /&gt;
              &lt;input type="submit" /&gt;
            &lt;/form&gt;'''
  
  @route('/login', method='POST')
  def login_submit(request):
    name = request.forms.get('name')
    password = request.forms.get('password')
    if check_login(name, password):
      return "&lt;p&gt;Your login was correct&lt;/p&gt;"
    else:
      return "&lt;p&gt;Login failed&lt;/p&gt;"
  
  run(host='localhost', port=8080)
  </code></pre>