marklogic/Corona — pull request #75 by isubiker (2011-12-17 05:52:16+00:00)
Title: Hooks to allow corona-admin users to specify a transformer to run on document inserts and/or fetches

Allows code to always be executed right before a document will be inserted and right after a document is fetched. One use case for this is schema validation before insertion. Could do other things like manage last-updated timestamps. All kinds of goodies.

Tests are included. New /manage/hooks endpoint was created.

Along the way I also fixed a couple bugs in the error handler.