Hi All,
I am using assign_mapper to map business objects to tables. The BOs need
some initialization. For example, while creating a User, I might need to
create an associated 'default' role. A crude example depicting the
requirement:
Class User(object):
def __init__(self):
self.roles.append()
self.roles[0].rolename = 'default'
self.created_at = datetime.now
It seems that __init__ can't be used in a class used along with
assign_mapper. So, need help on what is a recommended way to achieve
initialization.
Thanks
Sanjay
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users