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: 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 =?iso-8859-1?Q?Mart=EDnez?= To: python-list@python.org Subject: Re: Argument count mismatch References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Apr 21, 2011 at 12:33:09PM -0700, RVince wrote: > I am getting the following: > > Error - : 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.