FAQ

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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 7 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedApr 21, '11 at 7:33p
activeApr 22, '11 at 10:19a
posts7
users7
websitepython.org

People

Translate

site design / logo © 2021 Grokbase