Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3819

Argument count mismatch

From RVince <rvince99@gmail.com>
Newsgroups comp.lang.python
Subject Argument count mismatch
Date 2011-04-21 12:33 -0700
Organization http://groups.google.com
Message-ID <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com> (permalink)

Show all headers | View raw


I am getting the following:

Error - <type 'exceptions.TypeError'>: cmseditorlinemethod() takes
exactly 2 arguments (1 given)

When I make the following call:

http://localhost/eligibility/cmseditorlinemethod/474724434

Which invokes:

def cmseditorlinemethod(self, ssn):
        c.details =
Session.query(MSPResponse).filter(MSPResponse.beneficiaryssn ==
ssn).all()
        content = render('/cmseditorline.mako')
        return content

Can anyone tell me what the mismatch is in the number of my parameters
based on this? Thanks, RVince

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Argument count mismatch RVince <rvince99@gmail.com> - 2011-04-21 12:33 -0700
  Re: Argument count mismatch Wolfgang Rohdewald <wolfgang@rohdewald.de> - 2011-04-21 21:43 +0200
  Re: Argument count mismatch Chris Angelico <rosuav@gmail.com> - 2011-04-22 06:15 +1000
  Re: Argument count mismatch John Gordon <gordon@panix.com> - 2011-04-21 20:33 +0000
  Re: Argument count mismatch Westley Martínez <anikom15@gmail.com> - 2011-04-21 15:41 -0700
  Re: Argument count mismatch Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-22 01:43 +0000
    Re: Argument count mismatch Daniel Kluev <dan.kluev@gmail.com> - 2011-04-22 21:19 +1100

csiph-web