In other words you can probably get most of the same events by subclassing
one of the deprecated classes.
That SQLAlchemy has such low release numbers, and it's written by that
scofflaw M. Bayer. Nobody should use it until 1.0, he should stick to
directing Hollywood blockbusters. ;-)
--
You r
On 31/03/2011 16:18, Daniel Holth wrote:
SQLAlchemy 0.7 deprecates SessionExtension() and other abstract base
classes and replaces them with an event interface.
This doesn't address any of the reasons why I re-named the thread ;-)
Until 0.7 is officially released, I won't be using it...
cheer
SQLAlchemy 0.7 deprecates SessionExtension() and other abstract base classes
and replaces them with an event interface.
--
You received this message because you are subscribed to the Google Groups
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubs
transaction manager - calls -> repoze.bfg^Wpyramid -> your view
Your view returns, pyramid pops the threadlocal context used by
get_current_request, and then the transaction manager commits.
You can't get the threadlocal request anymore because Pyramid has already
done its cleanup and popped the
On 31/03/2011 16:00, Daniel Nouri wrote:
On Thu, Mar 31, 2011 at 4:44 PM, Chris Withers wrote:
On 31/03/2011 15:40, Daniel Nouri wrote:
FWIW, get_current_request() works with 'before_insert' and
'before_update' events.
I don't see these listed here:
http://www.sqlalchemy.org/docs/orm/interf
On Thu, Mar 31, 2011 at 4:44 PM, Chris Withers wrote:
> On 31/03/2011 15:40, Daniel Nouri wrote:
>> FWIW, get_current_request() works with 'before_insert' and
>> 'before_update' events.
>
> I don't see these listed here:
>
> http://www.sqlalchemy.org/docs/orm/interfaces.html?highlight=sessionexten
On 31/03/2011 15:40, Daniel Nouri wrote:
On Thu, Mar 31, 2011 at 4:23 PM, Chris Withers wrote:
Hi All,
I'm using zope.sqlalchemy to commit a a SQLAlchemy session.
As part of that commit, I want to record the user making the change as an
attribute of the changed object.
To do this, in a Sessio
On Thu, Mar 31, 2011 at 4:23 PM, Chris Withers wrote:
> Hi All,
>
> I'm using zope.sqlalchemy to commit a a SQLAlchemy session.
> As part of that commit, I want to record the user making the change as an
> attribute of the changed object.
>
> To do this, in a SessionExtension's before_flush method