I have the following class called "a"
*a.py *
class A:
def B ( self, var ):
return var
in my *default.py*
import a
def index():
form = SQLFORM(db.parameters)
datatable = ""
if form.process().accepted:
datatable = a.A().B("hello world")
return dict(datatable)
*I get the following error: *
<type 'exceptions.TypeError'> B() takes exactly 1 argument (2 given)
What could be going on here? After two hours I still don't get why B()
isn't called as it's supposed to be......
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.