Revision: 1712
(first time I've tried this so I don't know if it's recent breakage)
Tcontact = Table('contact' ... )
class contact(object):
pass
assign_mapper(contact, Tcontact,
extension=[
table_extensions.contact(),
])
in table_extensions.py:
class contact(MapperExtension):
def __init__(self):
print "in contact extension init"
super(contact, self).__init__()
def before_insert(self, mapper, connection, instance):
print "on before insert %r" % instance
update_contact_soundex_name(instance)
def before_update(self, mapper, connection, instance):
print "on before update %r" % instance
update_contact_soundex_name(instance)
inserting a new record or updating an existing record.. All I see for output is
"in contact extension init"
It seems before_insert and before_update are not being called.
--
Brad Clements, [EMAIL PROTECTED] (315)268-1000
http://www.murkworks.com
AOL-IM or SKYPE: BKClements
------------------------------------------------------------------------- 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 Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users