I've been failing to make PostgreSQL-Audit work with a small pyramid application I've built to test their integration: the application declares a Customer model and exposes an endpoint which updates the versioned table by suffixing an s to the customer's name... it should be enough to trigger the due listeners and populate the transaction and activity tables, but no such thing happens.
Given the documentation, there shouldn't be much setup to use this lib.
My actual goal is to use PostgreSQL-Audit in a pyramid application using pyramid-tm to back the commit/rollback at request time and a ZopeTransactionExtension to back the db sessions with a transaction, but it doesn't seem to work with a way simpler setup.
Hi!
I've been failing to make
PostgreSQL-Audit
work with a small pyramid application I've built to test their integration: the application declares aCustomer
model and exposes an endpoint which updates the versioned table by suffixing ans
to the customer'sname
... it should be enough to trigger the due listeners and populate thetransaction
andactivity
tables, but no such thing happens.Given the documentation, there shouldn't be much setup to use this lib.
My actual goal is to use
PostgreSQL-Audit
in a pyramid application using pyramid-tm to back the commit/rollback at request time and a ZopeTransactionExtension to back the db sessions with a transaction, but it doesn't seem to work with a way simpler setup.Am I missing something? Any thoughts?
Thanks!
some dependencies:
Application structure:
app.py (it can be ran with
gunicorn --paste conf.ini
)conf.ini