Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Audit-logging for Dexterity Contents #1491

Merged
merged 3 commits into from
Dec 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changelog

**Added**

- #1491 Enable Audit-logging for Dexterity Contents
- #1489 Support Multiple Catalogs for Dexterity Contents
- #1481 Filter Templates field when Sample Type is selected in Sample Add form
- #1483 Added Accredited symbol in Analyses listings
Expand Down
22 changes: 18 additions & 4 deletions bika/lims/subscribers/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,34 @@
handler=".objectadded.auto_generate_id"
/>

<!-- Audit Log: Object Created -->
<!-- Audit Log: AT Object Created -->
<subscriber
for="*
for="Products.Archetypes.interfaces.IBaseObject
Products.Archetypes.interfaces.IObjectInitializedEvent"
handler=".auditlog.ObjectInitializedEventHandler"
/>

<!-- Audit Log: Object Modified -->
<!-- Audit Log: Dexterity Object Created -->
<subscriber
for="*
for="plone.dexterity.interfaces.IDexterityContent
zope.lifecycleevent.interfaces.IObjectAddedEvent"
handler=".auditlog.ObjectInitializedEventHandler"
/>

<!-- Audit Log: AT Object Modified -->
<subscriber
for="Products.Archetypes.interfaces.IBaseObject
Products.Archetypes.interfaces.IObjectEditedEvent"
handler=".auditlog.ObjectModifiedEventHandler"
/>

<!-- Audit Log: Dexterity Object Modified -->
<subscriber
for="plone.dexterity.interfaces.IDexterityContent
zope.lifecycleevent.interfaces.IObjectModifiedEvent"
handler=".auditlog.ObjectModifiedEventHandler"
/>

<!-- Audit Log: After Transition Event -->
<subscriber
for="*
Expand Down