[Jifty-commit] r1472 - in jifty/trunk: lib/Jifty lib/Jifty/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jul 4 11:53:07 EDT 2006
Author: alexmv
Date: Tue Jul 4 11:53:03 2006
New Revision: 1472
Modified:
jifty/trunk/ (props changed)
jifty/trunk/META.yml
jifty/trunk/lib/Jifty/Action/Record.pm
jifty/trunk/lib/Jifty/Web.pm
Log:
r14825 at zoq-fot-pik: chmrr | 2006-07-04 11:52:24 -0400
* Allow actions to set current_users more usefully
Modified: jifty/trunk/META.yml
==============================================================================
--- jifty/trunk/META.yml (original)
+++ jifty/trunk/META.yml Tue Jul 4 11:53:03 2006
@@ -39,7 +39,7 @@
HTML::Mason::Plugin: 0
HTTP::Cookies: 0
HTTP::Date: 0
- HTTP::Server::Simple: 0.10
+ HTTP::Server::Simple: 0.20
HTTP::Server::Simple::Recorder: 0
Hash::Merge: 0
Hook::LexWrap: 0
Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm Tue Jul 4 11:53:03 2006
@@ -80,7 +80,8 @@
# We could leave out the explicit current user, but it'd have
# a slight negative performance implications
$self->record(
- $record_class->new( current_user => Jifty->web->current_user ) );
+ $record_class->new( current_user => $self->current_user ) );
+ warn "Record is ".YAML::Dump($self->current_user);
my %given_pks = ();
for my $pk ( @{ $self->record->_primary_keys } ) {
$given_pks{$pk} = $self->argument_value($pk)
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Tue Jul 4 11:53:03 2006
@@ -407,6 +407,7 @@
class => undef,
moniker => undef,
arguments => {},
+ current_user => $self->current_user,
@_
);
@@ -441,7 +442,7 @@
my $action;
# XXX TODO bullet proof
- eval { $action = $class->new( %args, arguments => {%arguments}, current_user => $self->current_user ); };
+ eval { $action = $class->new( %args, arguments => {%arguments} ); };
if ($@) {
my $err = $@;
$self->log->fatal($err);
More information about the Jifty-commit
mailing list