On Monday, September 12, 2011 2:10:02 PM UTC-4, pbreit wrote:
>
> The one issue I see, though, is that web2py does seem to expect table 
> primary keys to be "id". I'm not sure what to suggest there.
>

It is possible to name your id field something other than 'id' (recommended 
only for accessing legacy DBs): 
http://web2py.com/book/default/chapter/06?search=named+id+field. Just do:

db.define_table('qbp_user',
    Field('userid','id'),...)

Specifying the field type as 'id' tells web2py to treat the 'userid' field 
as the record id, so it won't create its own 'id' field.

Anthony
 

Reply via email to