[sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-26 Thread Anton
Michael, On 22 июн, 17:48, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 22, 2011, at 3:41 AM, Anton wrote: On 22 июн, 01:31, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 21, 2011, at 7:04 PM, Anton wrote: On 22 июн, 00:47, Michael Bayer mike...@zzzcomputing.com wrote: I

Re: [sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-26 Thread Michael Bayer
On Jun 26, 2011, at 6:13 PM, Anton wrote: Unfortunately this approach doesn't work with python 2.4 which doesn't allow multiple inherritance for exception classes, where one of parent classes is new-style: TypeError: exceptions must be classes, instances, or strings (deprecated), not

[sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-22 Thread Anton
On 22 июн, 01:31, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 21, 2011, at 7:04 PM, Anton wrote: On 22 июн, 00:47, Michael Bayer mike...@zzzcomputing.com wrote: I added StatementError after having too often a custom type or other kind of error happen deep inside the preparation

Re: [sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-22 Thread Michael Bayer
On Jun 22, 2011, at 3:41 AM, Anton wrote: On 22 июн, 01:31, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 21, 2011, at 7:04 PM, Anton wrote: On 22 июн, 00:47, Michael Bayer mike...@zzzcomputing.com wrote: I added StatementError after having too often a custom type or other kind of

[sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-22 Thread Anton
On 22 июн, 17:48, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 22, 2011, at 3:41 AM, Anton wrote: On 22 июн, 01:31, Michael Bayer mike...@zzzcomputing.com wrote: On Jun 21, 2011, at 7:04 PM, Anton wrote: On 22 июн, 00:47, Michael Bayer mike...@zzzcomputing.com wrote: I added

[sqlalchemy] Re: Raising exceptions from TypeDecorator.process_bind_param()

2011-06-21 Thread Anton
On 22 июн, 00:47, Michael Bayer mike...@zzzcomputing.com wrote: I added StatementError after having too often a custom type or other kind of error happen deep inside the preparation for execution with no indication what statement or parameter caused the issue.    It's an enhancement, and the