[sqlalchemy] how to get model class from CachingQuery

2011-06-13 Thread virhilo
Hello There is a way to get model class from CachingQuery instance? Thanks for help -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to

[sqlalchemy] Re: Composite Foreign Key with ondelete='CASCADE' does not work on mysql

2011-05-30 Thread virhilo
You need to use InnoDB engine, so you tables definitions 'll look like: sensors = Table('sensors', metadata, ... mysql_engine='InnoDB' ) view_opts = Table('view_opts', metadata, ... mysql_engine='InnoDB' ) On 30 Maj, 17:38, neurino neur...@gmail.com wrote: I have a

[sqlalchemy] Re: Do you have a way to track easily the source of « SAWarning: Unicode type received non-unicode bind param value. » ?

2011-05-23 Thread virhilo
use python -W error your_script.py or PYTHONWARNINGS=error your_script On 23 Maj, 10:17, Stéphane Klein steph...@harobed.org wrote: On 23 mai, 10:14, Chris Withers ch...@simplistix.co.uk wrote: I think you can do this by setting the warning filter to error early in your application:

[sqlalchemy] Re: Do you have a way to track easily the source of « SAWarning: Unicode type received non-unicode bind param value. » ?

2011-05-23 Thread virhilo
looks like my previous message diseappeared somehow:( PYTHONWARNINGS=error::RuntimeWarning::0,error::UnicodeWarning::0 your_script.py On 23 Maj, 10:17, Stéphane Klein steph...@harobed.org wrote: On 23 mai, 10:14, Chris Withers ch...@simplistix.co.uk wrote: I think you can do this by setting