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
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
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
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
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
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
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