Are you sure that's the exact code you're using? Also, you should generally 
do:

class A(object):

Anthony

On Friday, May 24, 2013 2:45:49 AM UTC-4, gthwang5 wrote:
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to