Hello, On Mon, 2006-09-18 at 23:14, Jose Galvez wrote: <snip> > > > > uin = dbsession.query(model.Wsi).get_by(uin=image) > > if uin: > > xml = uin.xml > > else: > > uin=model.Wsi() > > uin.uin=image > > xml = '<ZAS></ZAS>' > > uin.xml = xml > > dbsession.flush() > > dbsession.save(uin)
You may also want to do the save before the flush... Cheers, William. ------------------------------------------------------------------------- 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