[Rt-commit] r14115 - in rt/branches/3.999-DANGEROUS: . bin lib/RT lib/RT/Interface lib/RT/Model t/data/gnupg/keyrings
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Jul 15 09:24:25 EDT 2008
Author: sunnavy
Date: Tue Jul 15 09:24:24 2008
New Revision: 14115
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/bin/rt-crontool
rt/branches/3.999-DANGEROUS/lib/RT/Dashboard.pm
rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/ACE.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/ACECollection.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/AttributeCollection.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Group.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/LinkCollection.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/TicketCollection.pm
rt/branches/3.999-DANGEROUS/lib/RT/Search.pm
rt/branches/3.999-DANGEROUS/t/clicky.t
rt/branches/3.999-DANGEROUS/t/data/gnupg/keyrings/random_seed
Log:
r14490 at sunnavys-mb: sunnavy | 2008-07-15 18:34:12 +0800
current_user => $CurrentUser
Modified: rt/branches/3.999-DANGEROUS/bin/rt-crontool
==============================================================================
--- rt/branches/3.999-DANGEROUS/bin/rt-crontool (original)
+++ rt/branches/3.999-DANGEROUS/bin/rt-crontool Tue Jul 15 09:24:24 2008
@@ -107,16 +107,16 @@
# load template if specified
my $template_obj;
if ($template_id) {
- $template_obj = RT::Model::Template->new($CurrentUser);
+ $template_obj = RT::Model::Template->new( current_user => $CurrentUser );
$template_obj->load($template_id);
}
-my $void_scrip = RT::Model::Scrip->new( $CurrentUser );
-my $void_scrip_action = RT::Model::ScripAction->new( $CurrentUser );
+my $void_scrip = RT::Model::Scrip->new( current_user => $CurrentUser );
+my $void_scrip_action = RT::Model::ScripAction->new( current_user => $CurrentUser );
#At the appointed time:
#find a bunch of tickets
-my $tickets = RT::Model::TicketCollection->new($CurrentUser);
+my $tickets = RT::Model::TicketCollection->new( current_user => $CurrentUser );
my $search = $search->new(
TicketsObj => $tickets,
Argument => $search_arg,
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Dashboard.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Dashboard.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Dashboard.pm Tue Jul 15 09:24:24 2008
@@ -241,7 +241,7 @@
Object => $RT::System,
);
- my $groups = RT::Model::GroupCollection->new($CurrentUser);
+ my $groups = RT::Model::GroupCollection->new( current_user => $CurrentUser );
$groups->LimitToUserDefinedGroups;
$groups->WithMember(
PrincipalId => $CurrentUser->Id,
@@ -255,7 +255,7 @@
)
} @{ $groups->ItemsArrayRef };
- push @objects, RT::System->new($CurrentUser)
+ push @objects, RT::System->new( current_user => $CurrentUser )
if $CurrentUser->HasRight(
Right => "${prefix}Dashboard",
Object => $RT::System,
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm Tue Jul 15 09:24:24 2008
@@ -145,7 +145,7 @@
Jifty->log->debug("No user with a unix login of '$gecos' was found. ");
}
- return ($CurrentUser);
+ return ( current_user => $CurrentUser );
}
# }}}
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/ACE.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/ACE.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/ACE.pm Tue Jul 15 09:24:24 2008
@@ -49,7 +49,7 @@
=head1 SYNOPSIS
use RT::Model::ACE;
- my $ace = RT::Model::ACE->new($CurrentUser);
+ my $ace = RT::Model::ACE->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/ACECollection.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/ACECollection.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/ACECollection.pm Tue Jul 15 09:24:24 2008
@@ -53,7 +53,7 @@
=head1 SYNOPSIS
use RT::Model::ACECollection;
-my $ACL = RT::Model::ACECollection->new($CurrentUser);
+my $ACL = RT::Model::ACECollection->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/AttributeCollection.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/AttributeCollection.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/AttributeCollection.pm Tue Jul 15 09:24:24 2008
@@ -53,7 +53,7 @@
=head1 SYNOPSIS
use RT::Model::AttributeCollection;
-my $Attributes = RT::Model::AttributeCollection->new($CurrentUser);
+my $Attributes = RT::Model::AttributeCollection->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Group.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Group.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Group.pm Tue Jul 15 09:24:24 2008
@@ -57,7 +57,7 @@
=head1 SYNOPSIS
use RT::Model::Group;
-my $group = RT::Model::Group->new($CurrentUser);
+my $group = RT::Model::Group->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/LinkCollection.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/LinkCollection.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/LinkCollection.pm Tue Jul 15 09:24:24 2008
@@ -53,7 +53,7 @@
=head1 SYNOPSIS
use RT::Model::LinkCollection;
- my $links = RT::Model::LinkCollection->new($CurrentUser);
+ my $links = RT::Model::LinkCollection->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm Tue Jul 15 09:24:24 2008
@@ -53,7 +53,7 @@
=head1 SYNOPSIS
use RT::Model::Ticket;
- my $ticket = RT::Model::Ticket->new($CurrentUser);
+ my $ticket = RT::Model::Ticket->new( current_user => $CurrentUser );
$ticket->load($ticket_id);
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/TicketCollection.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/TicketCollection.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/TicketCollection.pm Tue Jul 15 09:24:24 2008
@@ -64,7 +64,7 @@
=head1 SYNOPSIS
use RT::Model::TicketCollection;
- my $tickets = RT::Model::TicketCollection->new($CurrentUser);
+ my $tickets = RT::Model::TicketCollection->new( current_user => $CurrentUser );
=head1 description
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Search.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Search.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Search.pm Tue Jul 15 09:24:24 2008
@@ -53,7 +53,7 @@
=head1 SYNOPSIS
use RT::Search;
- my $tickets = RT::Model::TicketCollection->new($CurrentUser);
+ my $tickets = RT::Model::TicketCollection->new( current_user => $CurrentUser );
my $foo = RT::Search->new(argument => $arg,
tickets_obj => $tickets);
$foo->prepare();
Modified: rt/branches/3.999-DANGEROUS/t/clicky.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/clicky.t (original)
+++ rt/branches/3.999-DANGEROUS/t/clicky.t Tue Jul 15 09:24:24 2008
@@ -20,7 +20,7 @@
my $CurrentUser = RT->system_user;
-my $queue = RT::Model::Queue->new($CurrentUser);
+my $queue = RT::Model::Queue->new( current_user => $CurrentUser );
$queue->load('General') || abort(_("Queue could not be loaded."));
my $message = MIME::Entity->build(
@@ -35,7 +35,7 @@
END
);
-my $ticket = RT::Model::Ticket->new( $CurrentUser );
+my $ticket = RT::Model::Ticket->new( current_user => $CurrentUser );
my ($id) = $ticket->create(
subject => 'test',
queue => $queue->id,
Modified: rt/branches/3.999-DANGEROUS/t/data/gnupg/keyrings/random_seed
==============================================================================
Binary files. No diff available.
More information about the Rt-commit
mailing list