[Rt-commit] rt branch, 4.2/dashboard-tables, updated. rt-4.0.0rc6-180-g580922e

Shawn Moore sartak at bestpractical.com
Tue Mar 22 13:52:37 EDT 2011


The branch, 4.2/dashboard-tables has been updated
       via  580922e61a53330e32127caa4d31dbced4dc69aa (commit)
       via  580a45b472bb425212e7ef6c58865cdb6d4e30ba (commit)
      from  71312da32ff0bb7175de23d07d43d3d8fd12f7e7 (commit)

Summary of changes:
 lib/RT/Dashboards.pm |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)

- Log -----------------------------------------------------------------
commit 580a45b472bb425212e7ef6c58865cdb6d4e30ba
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Mar 22 13:51:30 2011 -0400

    Rebase RT::Dashboards onto RT::SearchBuilder

diff --git a/lib/RT/Dashboards.pm b/lib/RT/Dashboards.pm
index 58ccd63..872afcf 100644
--- a/lib/RT/Dashboards.pm
+++ b/lib/RT/Dashboards.pm
@@ -48,17 +48,11 @@
 
 =head1 NAME
 
-  RT::Dashboards - a pseudo-collection for Dashboard objects.
+  RT::Dashboards - a collection for Dashboard objects
 
 =head1 SYNOPSIS
 
-  use RT::Dashboards
-
-=head1 DESCRIPTION
-
-  Dashboards is an object consisting of a number of Dashboard objects.
-  It works more or less like a DBIx::SearchBuilder collection, although it
-  is not.
+  use RT::Dashboards;
 
 =head1 METHODS
 
@@ -66,15 +60,12 @@
 =cut
 
 package RT::Dashboards;
-
-use RT::Dashboard;
-
 use strict;
-use base 'RT::SharedSettings';
+use warnings;
 
-sub RecordClass {
-    return 'RT::Dashboard';
-}
+use base 'RT::SearchBuilder';
+
+use RT::Dashboard;
 
 =head2 LimitToObject
 
@@ -118,10 +109,6 @@ sub LimitToPrivacy {
     }
 }
 
-sub ColumnMapClassName {
-    return 'RT__Dashboard';
-}
-
 RT::Base->_ImportOverlays();
 
 1;

commit 580922e61a53330e32127caa4d31dbced4dc69aa
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Mar 22 13:52:29 2011 -0400

    Give RT::Dashboards NewItem

diff --git a/lib/RT/Dashboards.pm b/lib/RT/Dashboards.pm
index 872afcf..c2946b6 100644
--- a/lib/RT/Dashboards.pm
+++ b/lib/RT/Dashboards.pm
@@ -109,6 +109,17 @@ sub LimitToPrivacy {
     }
 }
 
+=head2 NewItem
+
+Returns an empty new L<RT::Dashboard> record.
+
+=cut
+
+sub NewItem {
+    my $self = shift;
+    return RT::Dashboard->new($self->CurrentUser);
+}
+
 RT::Base->_ImportOverlays();
 
 1;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list