Argument count mismatch

John Gordon gordon at
Thu Apr 21 16:33:51 EDT 2011

In <ac20c08e-6957-4836-9319-e668a8da8112 at> RVince <rvince99 at> writes:

> def cmseditorlinemethod(self, ssn):
>         c.details =
> Session.query(MSPResponse).filter(MSPResponse.beneficiaryssn ==
> ssn).all()
>         content = render('/cmseditorline.mako')
>         return content

Is cmseditorlinemethod() a member of a class?  The presence of the "self"
parameter suggests that it is, but your code omits this detail.

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list