I'd be cautious about some of those field names. I'm not about to look them
up, but they look suspiciously like they may collide with reserved words.
I'm looking particularly hard at 'type' and 'text'. You may want to check
that.

Martin.

I don't mind typing the extra characters now that work bought me one of
these <http://www.kinesis-ergo.com/advantage_pro.htm> :)



On 1 February 2011 23:08, howesc <[email protected]> wrote:

> i try to use pythonic naming conventions in my database.
>
> i prefer:
> db.define_table('address_type',
> Field('name'))
>
> db.define_table('contact',
> Field('name'))
>
> db.define_table('address',
> Field('contact', db.contact),
> Field('type', db.address_type),
> Field('text'))
>
> but perhaps mainly because i don't like to type all those extra characters.
> :)
>

Reply via email to