[sqlalchemy] column_property and class Mixin problem

2012-01-03 Thread sector119
Hello. Can't get this to work, I want to get users who is online - users where last_read column = now() - 30 minutes With DBSession.query(User).filter(User.is_online) query But get the following error: File /home/eps/devel/tourclub/pbb/pbb/models/__init__.py, line 147, in module class

Re: [sqlalchemy] column_property and class Mixin problem

2012-01-03 Thread Michael Bayer
On Jan 3, 2012, at 3:31 PM, sector119 wrote: Hello. Can't get this to work, I want to get users who is online - users where last_read column = now() - 30 minutes With DBSession.query(User).filter(User.is_online) query But get the following error: File

Re: [sqlalchemy] column_property and class Mixin problem

2012-01-03 Thread sector119
Now I get File /home/eps/devel/tourclub/sqlalchemy/lib/sqlalchemy/sql/visitors.py, line 59, in _compiler_dispatch return getter(visitor)(self, **kw) File /home/eps/devel/tourclub/sqlalchemy/lib/sqlalchemy/sql/compiler.py, line 370, in visit_column raise exc.CompileError(Cannot

Re: [sqlalchemy] column_property and class Mixin problem

2012-01-03 Thread Michael Bayer
On Jan 3, 2012, at 4:14 PM, sector119 wrote: Now I get File /home/eps/devel/tourclub/sqlalchemy/lib/sqlalchemy/sql/visitors.py, line 59, in _compiler_dispatch return getter(visitor)(self, **kw) File /home/eps/devel/tourclub/sqlalchemy/lib/sqlalchemy/sql/compiler.py, line 370,