[sqlalchemy] Re: Zope.sqalchemy: AttributeError: '_thread._local' object has no attribute 'value'

2020-10-24 Thread Jonathan Vanasco
The extract code you posted is incorrect. You were given a step towards the right answer - you MUST invoke `register`. I say a step, because there may be other factors going on. However as you can see from the source code

[sqlalchemy] Zope.sqalchemy: AttributeError: '_thread._local' object has no attribute 'value'

2020-10-24 Thread Dave Everitt
I'm updating a working Pyramid app that uses sqlalchemy and have some success by replacing ZopeTransactionExtension with ZopeTransactionEvents. On running initialise with my local .ini file, All goes well, the database tables (MariaDB) are all written, but these errors occur: Traceback (most

Re: [sqlalchemy] Updating another table in "before-insert" event

2020-10-24 Thread Mike Bayer
On Fri, Oct 23, 2020, at 8:30 PM, ai.rese...@gmail.com wrote: > > Hi all > > I want to update a table row once I create a new row in another table. These > 2 tables are in the same database, but no relationship between them > > I use "before_insert" listener for the first table. In this