Re: [Sqlalchemy-users] Question about backrefs and query options

2006-07-07 Thread Robert Leftwich
I wrote: > Michael Bayer wrote: >> thanks for the info. this should be the last of the compilation >> bugs, fixed in rev 1686 . >> > > Sorry, but 1686 breaks all my tests, failing at: > > File "/home/robert/tools/python/sqlalchemy/lib/sqlalchemy/orm/mapper.py", > line > 196, in compile >

Re: [Sqlalchemy-users] Question about backrefs and query options

2006-07-07 Thread Robert Leftwich
Michael Bayer wrote: > > thanks for the info. this should be the last of the compilation > bugs, fixed in rev 1686 . > Sorry, but 1686 breaks all my tests, failing at: File "/home/robert/tools/python/sqlalchemy/lib/sqlalchemy/orm/mapper.py", line 196, in compile assert len(_compile_tri

Re: [Sqlalchemy-users] Question about backrefs and query options

2006-07-07 Thread Steve Zatz
Updating to 1686 did fix the problem. Thanks. 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.n

Re: [Sqlalchemy-users] Question about backrefs and query options

2006-07-07 Thread Michael Bayer
steve - thanks for the info. this should be the last of the compilation bugs, fixed in rev 1686 . - mike On Jul 5, 2006, at 4:02 PM, Steve Zatz wrote: >> so let me see what your mapper setup looks like. > > mapper(Item, item_table, properties = dict(keywords = > relation(Keyword, secondary=i

Re: [Sqlalchemy-users] Question about backrefs and query options

2006-07-05 Thread Michael Bayer
I cant reproduce this behavior: the Reminder mapper definitely has an 'item' property on it as you describe, and also if it didnt, thats not the error message you would get for that line. can you please submit a fully working test case ? On Jul 4, 2006, at 11:06 PM, Steve Zatz wrote: > It

[Sqlalchemy-users] Question about backrefs and query options

2006-07-04 Thread Steve Zatz
It seems that if you define a mapper relationship through a backref, that relationship does not appear to be 'visible' when setting options on a query. For example: mapper(Item, item_table, properties = {'reminder': relation(Reminder, backref='item')}) mapper(Reminder, reminder_table) If you th