Re: Argument count mismatch

2011-04-22 Thread Daniel Kluev
On Fri, Apr 22, 2011 at 12:43 PM, Steven D'Aprano wrote: > It looks to me like this function relies on no fewer than three global > variables, two that you read from and one which you write to: > > c > Session > MSPResponse > > This is almost certainly poor design. Using global state is almost alw

Re: Argument count mismatch

2011-04-21 Thread Steven D'Aprano
On Thu, 21 Apr 2011 12:33:09 -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 That's not a call, that's a URL. It's als

Re: Argument count mismatch

2011-04-21 Thread Westley Martínez
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 cmsedito

Re: Argument count mismatch

2011-04-21 Thread John Gordon
In RVince 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

Re: Argument count mismatch

2011-04-21 Thread Chris Angelico
On Fri, Apr 22, 2011 at 5:33 AM, 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(s

Re: Argument count mismatch

2011-04-21 Thread Wolfgang Rohdewald
On Donnerstag 21 April 2011, RVince wrote: > When I make the following call: > > http://localhost/eligibility/cmseditorlinemethod/474724434 broken link - I have no /eligilibity on my localhost -- Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Argument count mismatch

2011-04-21 Thread RVince
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(MS