Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

The idea is to provide a modification history in a transparent way.

I'm experimenting with SQLObject right now. SQLAlchemy support is not in yet.

When it's enabled it intercepts __setattr__ and the .set() method and tracs the
modifications on it's own table.

It adds a method to the SQLObject instances called get_modification_history()
that will return a list of ObjectStateTrace instances.

This object has 4 key attributes:
* time: moment the modification happened
* column_name: it is the attribute changed in the SQLObject instance
* old_value: value before the change
* new_value: value after the change

To enable this extension add this to your config file:
objectstatetracer.on=True

To use it:
class YourClass(SQLObject)
....

from objectstatetracer.extension import register_class

register_class(YourClass)

And the instances of YourClass should be audited for changes.

I couldn't add the WidgetDescription of HistoryPanel (a datagrid that shows the
modifications), because it's far from being finished.

Check the tests for more info.

IT DOES NOT SUPPORT LAZY UPDATES YET

!!!HIGHLY EXPERIMENTAL!!!
Right now this may break your software and/or corrupt your data.
Use at your own risk!.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ObjectStateTracer-0.1a0.dev_r542-py2.4.egg (23.9 kB view details)

Uploaded Egg

File details

Details for the file ObjectStateTracer-0.1a0.dev_r542-py2.4.egg.

File metadata

File hashes

Hashes for ObjectStateTracer-0.1a0.dev_r542-py2.4.egg
Algorithm Hash digest
SHA256 ced2b82f316c0caad996f9692786afbbdd69d074837002430740bd11f9b28939
MD5 954e0311b7c0c6c39c48f3980eb0c5b9
BLAKE2b-256 f90b07c73412e018f76b81768d01961662035ef618c169e7565b3cd99f0c2e17

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page