looks like youre defining the same Table object twice. looking at
the activemapper unit test i dont see the Person class being created
twice so perhaps something in activemapper itself is calling Table
('person') a second time...id say throw some print statements in.
On Apr 20, 2006, at 5:08 PM, Jonathan LaCour wrote:
All,
I have made an update to the ActiveMapper code based on changes by
Gabriel Jacobo (thanks Gabriel!). I have been able to verify the
changes in many cases, but I can't seem to get the ActiveMapper
unit tests running again. I have already committed the changes
that Gabriel sent me because ActiveMapper is experimental at this
point, and the unit tests were not passing before anyway, but I
need help figuring out what is going on in the unit tests.
Here is the error I get as of right now:
-----
Traceback (most recent call last):
File "activemapper.py", line 15, in ?
class Person(ActiveMapper):
File "/sqlalchemy/ext/activemapper.py", line 165, in __init__
cls.table = Table(table_name, _engine, *columns)
File "/sqlalchemy/schema.py", line 91, in __call__
raise ArgumentError("Table '%s.%s' is already defined. specify
'redefine=True' to remap columns, or 'useexisting=True' to use the
existing table" % (schema, name))
sqlalchemy.exceptions.ArgumentError: Table 'None.person' is already
defined. specify 'redefine=True' to remap columns, or
'useexisting=True' to use the existing table
-----
What do I need to do to get the unit tests back to a running
state? I would like to have ActiveMapper be usable again, as its
been lagging behind the fierce development pace of SQLAlchemy on a
whole.
Anyone know whats going on?
--
Jonathan LaCour
http://cleverdevil.org
-------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users