i = db.mytable.insert(fieldname=value)

i is class gluon.sql.Reference which extends int. i behaves like an
int but you can do

i.fieldname and it will fetch the record references, cache it and
return value.


Massimo

On Nov 28, 4:42 pm, MJoutsi <[email protected]> wrote:
> Hi,
>
> My first post so newbie warning :)
>
> I need to handle returned "id" further and trying to see it as an
> index value. However is it just my terrible python knowledge or what,
> do I need to parse this id to get just number out of it? Debugging
> with Aptana I see the value being
>
> Reference: 1
>
> is it some object or what kind of data it is? Not plain number
> definitely?
>
> BR,
> MJoutsi

Reply via email to