I get the following trace with Elixir from trunk (as of 9/9/07 12:00pm
[-0400 GMT]), SqlAlchemy 0.4beta5, and TurboGears-1.0.3.2dev_r3487:
--
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/Elixir-0.4.0-py2.5.egg/elixir/
entity.py", line 600, in __getattribute__
elixir.setup_all()
File "/usr/lib/python2.5/site-packages/Elixir-0.4.0-py2.5.egg/elixir/
__init__.py", line 120, in setup_all
setup_entities(_delayed_entities)
File "/usr/lib/python2.5/site-packages/Elixir-0.4.0-py2.5.egg/elixir/
__init__.py", line 107, in setup_entities
method()
File "/usr/lib/python2.5/site-packages/Elixir-0.4.0-py2.5.egg/elixir/
entity.py", line 365, in setup_mapper
*args, **kwargs)
File "/usr/lib/python2.5/site-packages/Elixir-0.4.0-py2.5.egg/elixir/
entity.py", line 673, in mapper
cls.mapper = self.context.mapper(cls, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.0beta5-
py2.5.egg/sqlalchemy/ext/activemapper.py", line 26, in __getattr__
return getattr(self.context.current, name)
AttributeError: 'Session' object has no attribute 'mapper'
--
To reproduce, I perform the following steps:
tg-admin shell
>>> import model # this model comes straight from Elixir example page
>>> dir(model.Visit.mapper)
**(Here I get traceback shown above)**
>>> dir(model.Visit)
['__class__', '__delattr__', '__dict__', '__doc__',
'__elixir_statements__', '__getattribute__', '__hash__', '__init__',
'__metaclass__', '__module__', '__new__', '__reduce__',
'__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__',
'_caller', '_class_key', '_descriptor', '_ready', '_table_key',
'get_by', 'lookup_visit', 'mapper', 'select', 'table']
Could one of the developers shed some light? I'm experimenting and
willing to test fixes and use the trunk.
Thanks,
--Renier
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---