- Timestamp:
- 01/29/09 13:35:57 (3 years ago)
- Location:
- trunk/ActionTrackerPlugin/lib/Foswiki
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from trunk/ActionTrackerPlugin/lib/TWiki)
-
Plugins/ActionTrackerPlugin/ActionSet.pm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ActionTrackerPlugin/lib/Foswiki/Plugins/ActionTrackerPlugin/ActionSet.pm
r1340 r2226 18 18 # Perl object that represents a set of actions (possibly interleaved 19 19 # with blocks of topic text) 20 package TWiki::Plugins::ActionTrackerPlugin::ActionSet;20 package Foswiki::Plugins::ActionTrackerPlugin::ActionSet; 21 21 22 22 use strict; 23 23 use integer; 24 use TWiki::Func;25 26 use TWiki::Plugins::ActionTrackerPlugin::Format;24 use Foswiki::Func; 25 26 use Foswiki::Plugins::ActionTrackerPlugin::Format; 27 27 28 28 # PUBLIC constructor … … 48 48 49 49 my @blocks = split( /(%ACTION{.*?}%|%ENDACTION%)/, $text ); 50 my $actionSet = new TWiki::Plugins::ActionTrackerPlugin::ActionSet();50 my $actionSet = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 51 51 my $i = 0; 52 52 my $actionNumber = 0; … … 72 72 } 73 73 } 74 my $action = new TWiki::Plugins::ActionTrackerPlugin::Action(74 my $action = new Foswiki::Plugins::ActionTrackerPlugin::Action( 75 75 $web, $topic, $actionNumber++, $attrs, $descr ); 76 76 $actionSet->add($action); … … 137 137 my ( $this, $attrs ) = @_; 138 138 my $action; 139 my $chosen = new TWiki::Plugins::ActionTrackerPlugin::ActionSet();139 my $chosen = new Foswiki::Plugins::ActionTrackerPlugin::ActionSet(); 140 140 141 141 foreach $action ( @{$this->{ACTIONS}} ) { … … 262 262 my ( $web, $attrs, $internal ) = @_; 263 263 $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 ); 266 266 my $topics = $attrs->{topic}; 267 267 268 268 @tops = grep( /^$topics$/, @tops ) if ( $topics ); 269 269 my $grep = 270 TWiki::Func::searchInWebContent( '%ACTION{.*}%', $web,270 Foswiki::Func::searchInWebContent( '%ACTION{.*}%', $web, 271 271 \@tops, 272 272 { type => 'regex', … … 277 277 # SMELL: always read the text, because it's faster in the current 278 278 # impl to find the perms embedded in it 279 my $text = TWiki::Func::readTopicText(279 my $text = Foswiki::Func::readTopicText( 280 280 $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( 284 284 $web, $topic, $text ); 285 285 $tacts = $tacts->search( $attrs ); … … 299 299 # Exclude webs flagged as NOSEARCHALL 300 300 $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(); 303 303 304 304 foreach my $web ( @webs ) { … … 320 320 321 321 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(); 324 324 325 325 foreach my $action (@{$this->{ACTIONS}}) {
Note: See TracChangeset
for help on using the changeset viewer.
