Yeah I will revert back to standalone function later on after I have
confirmed something.
I just want to output this variable on my screen still don't know how to
accomplish that with confusing MVC code...
desc = p.description
Somebody gave me a link to the document specification regarding
Ah sorry yeah, I forgot you needed @staticmethod decorator on the class
method.
To be honest though, that method should be a standalone function, not a
method (as James said, you need to re-think your approach!)
Cal
On Sun, Sep 8, 2013 at 9:25 PM, Pepsodent Cola wrote:
*[ Problem Solved ]* - Thanks James!
* http://www.sthurlow.com/python/lesson08/
*
http://mypythonnotes.wordpress.com/2008/09/07/functions-and-boundunbound-methods/
*
http://stackoverflow.com/questions/8108688/in-python-when-should-i-use-a-function-instead-of-a-method
Hi James,
Ok will do!
On Sunday, September 8, 2013 9:23:48 PM UTC+2, Pepsodent Cola wrote:
>
> I don't understand how to fix this error message? Here is the code that
> made things break.
>
> Exception Value: global name 'dictfetchall2' is not defined
>
>
>
>
>
You wrote a method on a class, but didn't define it as taking the 'self'
argument that's required for instance methods of Python classes.
It may be best to back up a bit and work through some introductory Python
tutorials before resuming on your Django app.
--
You received this message because
Hi Cal,
I replaced the code with this:
row = AltwordManager.dictfetchall2(cursor)
Then I got a different error message that I don't understand?
ExceptionValue:
unbound method dictfetchall2() must be called with AltwordManager instance as
first argument (got CursorDebugWrapper
Try and replace
row = dictfetchall2(cursor)
With this
row = AltwordManager.dictfetchall2(cursor)
Cal
On Sun, Sep 8, 2013 at 8:23 PM, Pepsodent Cola wrote:
> I don't understand how to fix this error message? Here is the code that
> made things break.
>
> Exception
7 matches
Mail list logo