I have this unusual behavior, this code adds data to the server quiet ok
but returns "Server Error" am expecting an integer

*#Controller*
*
*
def saveData():
    insertID = db.mytable.insert(
        field1= request.vars.field1,
        field2 = request.vars.field2
    )
    return insertID

Data gets saved quiet well, but the insertID displays "Server Error" I was
thinking it returns an ID
-- 
.......................................................................................
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA

Cell: +260 97 7760473
website: http://www.opensource.org.zm

~/
Human Knowledge belongs to the world! - AntiTrust

Man is a tool-using animal. Without tools he is nothing, with tools he is
all - Thomas Carlyle 1795-1881

/~

-- 

--- 
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.


Reply via email to