Reference inherits from int. It is a built in shortcut to allow you to
follow references from one table to another:
db.define_table('things',Field('name'))
db.define_table('stuff',Field('location'),Field('thing', 'reference
things'))onestuff = db(db.stuff.id > 0).select().first() print onestuff.thing.name 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

