db.testing.insert(numer_sum=sum)

Shouldn't the above be number_sum?

On Saturday, March 1, 2014 2:46:59 PM UTC-5, Trevor Overman wrote:
>
> So I'm trying to connect an android application to my web2py website back 
> end database by using json remote procedure calls.
> Currently, I am trying to make a simple test function to remotely add 
> entries in the db.
> Additionally, I am running on GAE.
>
> What I have right now is:
>
> db.py
> db.define_table('testing',
>     Field('number_sum','string'),
> )
>
> default.py
> def call():
>     return service()
>
> @service.jsonrpc
> def test_add(a,b):
>     sum = a+b
>     db.testing.insert(numer_sum=sum)
>     return a+b
>
> when I run the following in terminal,
> curl http://domain/app/default/call/run/test_add?a=3&b=4
>
> I receive an "Object does not exist" error. 
> Any help would be appreciated!
>
> -Trevor
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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