Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1808320
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:14:49+00:00 2026-05-17T06:14:49+00:00

The error that I am receiving is the following: Traceback (most recent call last):

  • 0

The error that I am receiving is the following:

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
TypeError: get() takes exactly 1 argument (2 given)

What’s crazy is I only get it once I deploy the application – on the development server, it works perfectly fine. I’m tearing my hair out!

import cgi
import os
import string

from google.appengine.api import users
from google.appengine.ext import webapp, db
from google.appengine.ext.webapp import util, template
from google.appengine.ext.webapp import template
from models import *
from functions import *

class ListView(webapp.RequestHandler):
    def get(self, f):
        url = users.create_logout_url(self.request.uri)

        u = parse_url(f)

        votergroup = Voter.all()
        votergroup.filter('lists =', u['list'])

        customlists = CustomList.all()

        template_values = {
                'votergroup': votergroup,
                'customlists': customlists,
                'url': url
                }
        path = os.path.join(os.path.dirname(__file__), 'templates/list_view.html')
        self.response.out.write(template.render(path, template_values))

class CreateList(webapp.RequestHandler):
    def get(self, f):
        if users.is_current_user_admin():
            cuser = None
        else:
            cuser = CampaignUser.all()
            cuser.filter('uaccount =', users.get_current_user())
            cuser = cuser[0]

        u = parse_url(f)

        c = db.get(u['group'])
        filters = CustomGroupFilter.all()
        filters.filter('customquery =', c.key())

        l = CustomList()
        l.name = 'Custom List: ' + c.name
        l.campaign = cuser.campaign
        l.put()

        votergroup = Voter.all()
        for filt in filters:
            votergroup.filter(filt.queryfield + ' =', string.upper(filt.query))

        for v in votergroup:
            v.lists.append(str(l.key()))
            v.put()

        self.redirect('/list/target/custom/list/' + str(l.key()))

application = webapp.WSGIApplication(
                [('/list/target/create/(.*)', CreateList),
                 ('/list/(.*)', ListView)],
                debug=True)

def main():
    util.run_wsgi_app(application)

if __name__ == "__main__":
    main()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:14:50+00:00Added an answer on May 17, 2026 at 6:14 am

    I figured out what was wrong. I had changed the version string for the app – so even though I was updating it, it was pulling from the old “version”. Setting the new one to default worked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.