le 25.09.2007 10:01 Gaetan de Menten a écrit:
> On 9/24/07, jean-marc pouchoulon <[EMAIL PROTECTED]> wrote:
>
>   
>> I'm trying to use elixir without any success ( in 1.04 and 1.1):
>>
>> page = Page.get_by(pagename=pagename) give me :
>>
>> AttributeError: type object 'Page' has no attribute 'query'
>> that I don't understand.
>>
>>
>> page=session.query(Page).get_by(pagename="Frontpage") works but I
>> suppose this is not the good way to take advantage of elixir.
>>     
>
> What version of Elixir are you using? And what version of SQLAlchemy?
> This looks like an issue we had recently on recent development
> versions of Elixir, but I thought I had fixed all of these yesterday
> (as of revision 210). If this still doesn't work with r210 or later,
> could you report back (here or on Elixir's list) with the full
> traceback and the version of SQLAlchemy you are using.
>
> By the way, the latest version of Elixir should work for both
> SQLAlchemy 0.4 and 0.3.10, but *not* for earlier versions.
>
> Hope this helps,
>   
in tg-admin shell (TG 1.0.3.2, elixir trunk 211) you get this error 
until you do a "elixir.setup_all()"

adding elixir.setup_all() at the end of model.py solves the problem.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to