[Rt-commit] r8562 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: lib/RT
thayes at bestpractical.com
thayes at bestpractical.com
Wed Aug 15 18:54:48 EDT 2007
Author: thayes
Date: Wed Aug 15 18:54:47 2007
New Revision: 8562
Removed:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/TicketLocking.pm
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/ (props changed)
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/User_Overlay.pm
Log:
r8738 at toth: toth | 2007-08-15 18:44:23 -0400
* Moved ticket locking methods to new RT-Extension-TicketLocking (coming soon to a repo near you)
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm Wed Aug 15 18:54:47 2007
@@ -81,7 +81,6 @@
use RT::URI::fsck_com_rt;
use RT::URI;
use MIME::Entity;
-use RT::TicketLocking;
# {{{ LINKTYPEMAP
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/User_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/User_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/User_Overlay.pm Wed Aug 15 18:54:47 2007
@@ -1621,40 +1621,6 @@
}
-
-sub GetLocks {
- my $self = shift;
-
- my $attribs = RT::Attributes->new($self);
- $attribs->Limit(FIELD => 'Creator', OPERATOR=> '=', VALUE => $self->id(), ENTRYAGGREGATOR => 'AND');
-
- my $expiry = RT->Config->Get('LockExpiry');
- return $attribs->Named('RT_Lock') unless $expiry;
- my @locks;
-
- foreach my $lock ($attribs->Named('RT_Lock')) {
- my $duration = time() - $lock->Content->{'Timestamp'};
- if($duration < $expiry) {
- push @locks, $lock;
- }
- else {
- $lock->Delete();
- }
- }
- return @locks;
-}
-
-sub RemoveLocks {
- my $self = shift;
-
- my $attribs = RT::Attributes->new($self);
- $attribs->Limit(FIELD => 'Creator', OPERATOR=> '=', VALUE => $self->id(), ENTRYAGGREGATOR => 'AND');
- my @attributes = $attribs->Named('RT_Lock');
- foreach my $lock (@attributes) {
- $lock->Delete();
- }
-}
-
1;
More information about the Rt-commit
mailing list