I think he is talking about this, if it would be SQL:
SELECT my_descriptive_name as a FROM my_table
In web2py, something near:
Field('my_descriptive_field_name', 'string', alias='a')
And, in code:
print db.my_table.a
--
Vinicius Assef.
On Tue, May 24, 2011 at 11:21 AM, Massimo Di Pierro
<[email protected]> wrote:
> How about
>
> my_descriptive_field_name = db.a
>
> On May 24, 9:06 am, Plumo <[email protected]> wrote:
>> the database I use (GAE) has a big overhead for long field names.
>> So I want to change Field('my_descriptive_field_name') to Field('a') and use
>> an alias to keep accessing with 'my_descriptive_field_name'.
>> Can this be done?