[sqlalchemy] Re: how to rename labels?

2006-12-28 Thread Lee McFadden
On 12/28/06, jose [EMAIL PROTECTED] wrote: I would like to know how assign label names as in: comune.cod_provincia AS sigla_provincia instead of: comune.cod_provincia AS comune_cod_provincia http://www.sqlalchemy.org/docs/sqlconstruction.myt#sql_select_labels -- Lee McFadden blog:

[sqlalchemy] Re: how to rename labels?

2006-12-28 Thread jose
Lee McFadden wrote: On 12/28/06, jose [EMAIL PROTECTED] wrote: I would like to know how assign label names as in: comune.cod_provincia AS sigla_provincia instead of: comune.cod_provincia AS comune_cod_provincia http://www.sqlalchemy.org/docs/sqlconstruction.myt#sql_select_labels I

[sqlalchemy] Re: how to rename labels?

2006-12-28 Thread Lee McFadden
On 12/28/06, jose [EMAIL PROTECTED] wrote: I Lee, I see this examples works only with table object. Is there a way to use it with class mappers? If you're using the class mappers I'm not quite sure why you'd need to fiddle with the labels - you shouldn't even need to see the generated SQL

[sqlalchemy] Re: how to rename labels?

2006-12-28 Thread jose
Lee McFadden wrote: On 12/28/06, jose [EMAIL PROTECTED] wrote: I Lee, I see this examples works only with table object. Is there a way to use it with class mappers? If you're using the class mappers I'm not quite sure why you'd need to fiddle with the labels - you shouldn't even need to

[sqlalchemy] Re: how to rename labels?

2006-12-28 Thread Lee McFadden
On 12/28/06, jose [EMAIL PROTECTED] wrote: I think I'm yet a little bit confused about using table objects or class mappers... I think I'm doing a fruit salade with both of them: Here I'm using classes (Anagrafica and Azienda) and also table objects (tbl['table_name']) because I need