Argument count mismatch

RVince rvince99 at gmail.com
Thu Apr 21 15:33:09 EDT 2011


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



More information about the Python-list mailing list