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


Groups > comp.lang.python > #3826

Re: Argument count mismatch

Date 2011-04-21 15:41 -0700
From Westley Martínez <anikom15@gmail.com>
Subject Re: Argument count mismatch
References <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.722.1303425688.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Apr 21, 2011 at 12:33:09PM -0700, RVince wrote:
> 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

There's no way to see that link without knowing a domainname or IP.
localhost only works locally, go figure, but regardless I'd suspect that
you need to give two arguments instead of one, considering that's what
the error message said.

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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