[Zope3-Users] mapper properties with z3c.sqlalchemy

croguet at vif.com croguet at vif.com
Tue Jul 15 13:39:48 EDT 2008


Hi,

I'm playing with z3c.sqlalchemy and it works perfectly but I don't see  
how to pass properties to my mapper.

Let's say I create a model  :

model.add(name='TBL', mapper_class=TBLClass)


But I want to rename my columns to make fit my fields names with my  
interface's attributes. In SQLAlchemy I would simply add this to my  
mapper :

properties={'Col1New': TBL.c.Col1Old,'Col2New': TBL.c.Col2Old}

Is it possible to include it in my z3c.sqlalchemy's model?

Thank you.




More information about the Zope3-users mailing list