[Jifty-commit] jifty branch, master, updated. jifty-1.01209-26-g36c5abc
Jifty commits
jifty-commit at lists.jifty.org
Wed Feb 9 21:23:28 EST 2011
The branch, master has been updated
via 36c5abc55ddbd12bfc454deb96e4737a7064ef29 (commit)
from 41b366ca479af5629d77526b3a821f3cae930719 (commit)
Summary of changes:
lib/Jifty/Action/Record/Update.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 36c5abc55ddbd12bfc454deb96e4737a7064ef29
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Feb 9 21:23:09 2011 -0500
Notify the record when we're about to begin running through an Update
For the RecordHistory plugin
diff --git a/lib/Jifty/Action/Record/Update.pm b/lib/Jifty/Action/Record/Update.pm
index 98dceb8..9d9e3ec 100644
--- a/lib/Jifty/Action/Record/Update.pm
+++ b/lib/Jifty/Action/Record/Update.pm
@@ -101,6 +101,8 @@ sub take_action {
my $detailed_messages = {};
+ $self->record->call_trigger('start_update_action');
+
# Iterate through all the possible arguments
for my $field ( $self->argument_names ) {
@@ -197,6 +199,8 @@ sub take_action {
$self->result->content( detailed_messages => $detailed_messages )
if $self->report_detailed_messages;
+ $self->record->call_trigger('end_update_action');
+
# Publish the update event
$self->_setup_event_after_action($event_info);
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list