Ignore:
Timestamp:
01/29/09 13:35:57 (3 years ago)
Author:
CrawfordCurrie
Message:

Item455: port to foswiki Item5974: correct CSS for search results table Item5938: load CSS for ACTIONSEARCH Item5606: Item5915: respect global settings for time format

Location:
trunk/ActionTrackerPlugin/lib/Foswiki
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/ActionTrackerPlugin/lib/Foswiki/Plugins/ActionTrackerPlugin/ActionSet.pm

    r1340 r2226  
    1818# Perl object that represents a set of actions (possibly interleaved 
    1919# with blocks of topic text) 
    20 package TWiki::Plugins::ActionTrackerPlugin::ActionSet; 
     20package Foswiki::Plugins::ActionTrackerPlugin::ActionSet; 
    2121 
    2222use strict; 
    2323use integer; 
    24 use TWiki::Func; 
    25  
    26 use TWiki::Plugins::ActionTrackerPlugin::Format; 
     24use Foswiki::Func; 
     25 
     26use Foswiki::Plugins::ActionTrackerPlugin::Format; 
    2727 
    2828# PUBLIC constructor 
     
    4848 
    4949    my @blocks = split( /(%ACTION{.*?}%|%ENDACTION%)/, $text ); 
    50     my $actionSet = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     50    my $actionSet = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    5151    my $i = 0; 
    5252    my $actionNumber = 0; 
     
    7272                } 
    7373            } 
    74             my $action = new TWiki::Plugins::ActionTrackerPlugin::Action( 
     74            my $action = new Foswiki::Plugins::ActionTrackerPlugin::Action( 
    7575                $web, $topic, $actionNumber++, $attrs, $descr ); 
    7676            $actionSet->add($action); 
     
    137137    my ( $this, $attrs ) = @_; 
    138138    my $action; 
    139     my $chosen = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     139    my $chosen = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    140140 
    141141    foreach $action ( @{$this->{ACTIONS}} ) { 
     
    262262    my ( $web, $attrs, $internal ) = @_; 
    263263    $internal = 0 unless defined ( $internal ); 
    264     my $actions = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    265         my @tops = TWiki::Func::getTopicList( $web ); 
     264    my $actions = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     265        my @tops = Foswiki::Func::getTopicList( $web ); 
    266266        my $topics = $attrs->{topic}; 
    267267 
    268268        @tops = grep( /^$topics$/, @tops ) if ( $topics ); 
    269269    my $grep = 
    270       TWiki::Func::searchInWebContent( '%ACTION{.*}%', $web, 
     270      Foswiki::Func::searchInWebContent( '%ACTION{.*}%', $web, 
    271271                                       \@tops, 
    272272                                       { type => 'regex', 
     
    277277        # SMELL: always read the text, because it's faster in the current 
    278278        # impl to find the perms embedded in it 
    279         my $text = TWiki::Func::readTopicText( 
     279        my $text = Foswiki::Func::readTopicText( 
    280280            $web, $topic, undef, $internal ); 
    281         next unless $internal || TWiki::Func::checkAccessPermission( 
    282             'VIEW', TWiki::Func::getWikiName(), $text, $topic, $web); 
    283         my $tacts = TWiki::Plugins::ActionTrackerPlugin::ActionSet::load( 
     281        next unless $internal || Foswiki::Func::checkAccessPermission( 
     282            'VIEW', Foswiki::Func::getWikiName(), $text, $topic, $web); 
     283        my $tacts = Foswiki::Plugins::ActionTrackerPlugin::ActionSet::load( 
    284284            $web, $topic, $text ); 
    285285        $tacts = $tacts->search( $attrs ); 
     
    299299    # Exclude webs flagged as NOSEARCHALL 
    300300    $choice .= ',public' if $filter ne $theweb; 
    301     my @webs = grep { /^$filter$/ } TWiki::Func::getListOfWebs( $choice ); 
    302     my $actions = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     301    my @webs = grep { /^$filter$/ } Foswiki::Func::getListOfWebs( $choice ); 
     302    my $actions = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    303303 
    304304    foreach my $web ( @webs ) { 
     
    320320 
    321321    my $found = undef; 
    322     my $pre = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    323     my $post = new TWiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     322    my $pre = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
     323    my $post = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 
    324324 
    325325    foreach my $action (@{$this->{ACTIONS}}) { 
Note: See TracChangeset for help on using the changeset viewer.