hehehe.... Massimo had it almost right too ;-)

But either way, trying out a couple of lines yourself with:

python web2py.py -S my_app -M

helps :-)

On Thu, Nov 13, 2008 at 10:25 AM, mdipierro <[EMAIL PROTECTED]> wrote:

>
> My bad. Had a typo:
>
> def my_insert(**vsql):
>     db.people.insert(**vsql)
> my_insert(name='Carl',address='av none 1')
>
> no self unless my_insert is a method
>
> class A:
>     def my_insert(self,**vsql):
>         db.people.insert(**vsql)
> a=A()
> a.my_insert(name='Carl',address='av none 1')
>
>
>
> On Nov 13, 7:31 am, Heronim <[EMAIL PROTECTED]> wrote:
> > Yes, I read.
> > I did what I said is happening but the following message:
> >
> > "TypeError: insert() takes exactly 1 argument (2 given)"
> >
> > "Thanks,
> >
> > Heronim
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to