try out 1166.

On Mar 17, 2006, at 6:11 PM, Florian Boesch wrote:

Michael,

I've tried on the current trunk (r1164) but it's still not working for me.
Atached you'll find my test programm.

Cheers,
Florian

Quoting Michael Bayer <[EMAIL PROTECTED]>:

florian -

i have managed to reproduce what is probably the problem youre
having, and made even more modifications to inheritance to more
accurately determine join conditions, relationship directions, and
syncrules.  give the trunk a try.

- mike

On Mar 17, 2006, at 10:46 AM, Florian Boesch wrote:

Was working with revision 1117 successfully. Now I updated to the
downloadable
version 0.1.4 and it breaks on me at a line resmebling:

B.mapper = sqla.mapper(B, b, inherits=a)

I also tried with the current trunk, same result. Below the traceback.

Traceback (most recent call last):
  File "./start-shop.py", line 20, in ?
    from shop.controllers import Root
File "/home/florian/shop_ng/shop/shop/controllers.py", line 3, in ?
    from shop import platforms, tools, mandator, oracle_session
  File "/home/florian/shop_ng/shop/shop/tools.py", line 2, in ?
    from shop.application import model
  File "/home/florian/shop_ng/shop/shop/application/__init__.py",
line 1, in ?
    from sqla import orm, model
  File "/home/florian/shop_ng/shop/shop/application/sqla/orm.py",
line 31, in ?
products = sqla.mapper(Product, model.product, inherits=contents)
  File
"/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.4-py2.4.egg/
sqlalchemy/mapping/__init__.py",
line 55, in mapper
    return Mapper(class_, table, *args, **params)
  File
"/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.4-py2.4.egg/
sqlalchemy/mapping/mapper.py",
line 187, in __init__
    prop.init(key, self)
  File
"/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.4-py2.4.egg/
sqlalchemy/mapping/mapper.py",
line 859, in init
    self.do_init(key, parent)
  File
"/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.4-py2.4.egg/
sqlalchemy/mapping/properties.py",
line 189, in do_init
    self.direction = self._get_direction()
  File
"/usr/local/lib/python2.4/site-packages/SQLAlchemy-0.1.4-py2.4.egg/
sqlalchemy/mapping/properties.py",
line 238, in _get_direction
    raise ArgumentError("Cant determine relation direction")
sqlalchemy.exceptions.ArgumentError: Cant determine relation direction

Cheers, Florian


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users




<inheritance_test.py>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to