Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3826
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <anikom15@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'arguments': 0.05; '21,': 0.09; 'def': 0.13; 'wrote:': 0.14; 'call:': 0.16; 'localhost': 0.16; 'locally,': 0.16; 'mismatch': 0.16; 'thanks,': 0.17; 'this?': 0.18; 'header:In-Reply-To:1': 0.22; 'thu,': 0.22; 'suspect': 0.25; 'parameters': 0.26; 'instead': 0.26; 'regardless': 0.26; 'knowing': 0.29; 'error': 0.29; 'one,': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.32; 'from:charset:iso-8859-1': 0.33; 'header:User-Agent:1': 0.35; '-0700,': 0.35; 'getting': 0.36; 'charset:us-ascii': 0.36; 'two': 0.37; 'exactly': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'works': 0.40; 'takes': 0.40; 'header:Received:5': 0.40; 'give': 0.61; '2011': 0.62; 'link': 0.62; 'received:74.125.83': 0.69 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=2NCipZDMZV/QNDuA/bEU5/6k9jDNUT2c0biZGXC9SMI=; b=w1CZHjf+jzpb3Tx+0mRi3hTIauNdOi50PmUszI8BnVhe8mxeFTWOdp5PwoH05ed6Dj gUVYMMnZo8KmpYXaZmTK+Lwch/bSL3J7R0KMQdIkpclprZJlgYCD7mJPpDnqZMX1WoQR 2woh19EzgGCjB8eNhPHFz2TALtZCZVYA6pqSM= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=G7tIJ8/pGXPQpNdDiTZ9kav607JIT87mtfx8AbdElRBh4Io3loIVwzvxL+WdiUEKFe Ns/1tvP0kj66lfsexrG66T2DaPS0OXAxvYK8hjDuKnBd5oDHtFzqxwtIMFFTiIsqTM9j MFRp6JK9zfdNGOqtZbIO3nTi4rgnqt9oVBag0= |
| Date | Thu, 21 Apr 2011 15:41:22 -0700 |
| From | Westley MartÃnez <anikom15@gmail.com> |
| To | python-list@python.org |
| Subject | Re: Argument count mismatch |
| References | <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <ac20c08e-6957-4836-9319-e668a8da8112@q30g2000vbs.googlegroups.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.722.1303425688.9059.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303425688 news.xs4all.nl 65870 [::ffff:82.94.164.166]:39550 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3826 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar
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