class_mapper(Address).compile() too.... On Aug 30, 2006, at 9:41 AM, Robert Hicks wrote:
> Michael Bayer wrote: >> the latest trunk has some fixes for that error, it will be in the >> next release. >> >> as an alternative, you can manually "compile" the mapper beforehand: >> >> usermapper.compile() >> > > I did: > > usermapper.compile() > usermapper.add_property('addresses', relation(Address)) > > And: > > Traceback (most recent call last): > File "<pyshell#99>", line 1, in -toplevel- > usermapper.add_property('addresses', relation(Address)) > File "build\bdist.win32\egg\sqlalchemy\orm\mapper.py", line 499, in > add_property > File "build\bdist.win32\egg\sqlalchemy\orm\mapper.py", line 547, in > _compile_property > File "build\bdist.win32\egg\sqlalchemy\orm\mapper.py", line > 1148, in init > File "build\bdist.win32\egg\sqlalchemy\orm\properties.py", line > 217, > in do_init > AttributeError: 'Mapper' object has no attribute 'mapped_table' > > > Robert > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Sqlalchemy-users mailing list > Sqlalchemy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users