Skip to content

Commit

Permalink
Item109: TWikiGuest -> WikiGuest
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/ActionTrackerPlugin@664 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Nov 15, 2008
1 parent a044cbb commit 977e979
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions data/TWiki/ActionTrackerPlugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Write the command =%<nop>ACTION{= _attributes_ =}% ... %<nop>ENDACTION%= anywhe

For example,
<pre>
%<nop>ACTION{ who="TWikiGuest" due="2 Jan 2004" state="open" notify="AttillaTheHun" }% An action for TWikiGuest %<nop>ENDACTION%
%<nop>ACTION{ who="WikiGuest" due="2 Jan 2004" state="open" notify="AttillaTheHun" }% An action for WikiGuest %<nop>ENDACTION%
%<nop>ACTION{ who="LittleOysters" due="2 Jan 1884" state="open" }%
The time has come, the walrus said,
To speak of many things.
Expand Down Expand Up @@ -99,7 +99,7 @@ For example,
<pre>
%<nop>ACTIONSEARCH{ who="me" state="late" }%
%<nop>ACTIONSEARCH{ who="me" open late }%
%<nop>ACTIONSEARCH{ who="TWikiGuest" state="open" within="7" }%
%<nop>ACTIONSEARCH{ who="WikiGuest" state="open" within="7" }%
%<nop>ACTIONSEARCH{ web=".*" who="Genghis.Khan@mongol.empire.org" state="open" within="7" }%
</pre>

Expand Down Expand Up @@ -391,9 +391,9 @@ Set to 1 to enable debug features, including the undocumented =%<nop>ACTIONNOTIF

%$INSTALL_INSTRUCTIONS%
* If the plugin is installed and enabled correctly you should see a formatted action below:
%ACTION{who=TWikiGuest,due="1 Jan 2003",open}% Example action %ENDACTION%
%ACTION{who=WikiGuest,due="1 Jan 2003",open}% Example action %ENDACTION%
* ... and the result of a formatted search below:
%ACTIONSEARCH{topic=ActionTrackerPlugin who=TWikiGuest header="|Who|Due|State|Description|" format="| $who |$due|$state|$text $link|" orient="rows" }%
%ACTIONSEARCH{topic=ActionTrackerPlugin who=WikiGuest header="|Who|Due|State|Description|" format="| $who |$due|$state|$text $link|" orient="rows" }%

Note that if you want to use the =action= template shipped with the TWiki:Plugins.CommentPlugin to create actions, then you must put the !CommentPlugin *before* the !ActionTrackerPlugin in the ={PluginsOrder}= configuration option.

Expand Down
12 changes: 6 additions & 6 deletions test/unit/ActionTrackerPlugin/ActionTrackerPluginTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ sub testAfterEditHandler {
my $second = $2;
my $re = qr/\s+state=\"open\"\s+/;
$this->assert_matches($re, $first); $first =~ s/$re/ /;
$re = qr/\s+creator=\"$this->{users_web}\.TWikiGuest\"\s+/o;
$re = qr/\s+creator=\"$this->{users_web}\.WikiGuest\"\s+/o;
$this->assert_matches($re, $first); $first =~ s/$re/ /;
$re = qr/\s+due=\"3-Jun-2002\"\s+/;
$this->assert_matches($re, $first); $first =~ s/$re/ /;
$re = qr/\s+created=\"3-Jun-2002\"\s+/;
$this->assert_matches($re, $first); $first =~ s/$re/ /;
$re = qr/\s+who=\"$this->{users_web}.TWikiGuest\"\s+/;
$re = qr/\s+who=\"$this->{users_web}.WikiGuest\"\s+/;
$this->assert_matches($re, $first); $first =~ s/$re/ /;
}

Expand All @@ -233,13 +233,13 @@ sub testBeforeSaveHandler1 {
$text,"Topic2",$this->{users_web});
my $re = qr/ state=\"open\"/;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ creator=\"$this->{users_web}.TWikiGuest\"/o;
$re = qr/ creator=\"$this->{users_web}.WikiGuest\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ created=\"3-Jun-2002\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ due=\"3-Jun-2002\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ who=\"$this->{users_web}.TWikiGuest\"/o;
$re = qr/ who=\"$this->{users_web}.WikiGuest\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ No description/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
Expand Down Expand Up @@ -278,13 +278,13 @@ EOF
$text,"Topic2",$this->{users_web});
my $re = qr/ state=\"open\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ creator=\"$this->{users_web}.TWikiGuest\"/o;
$re = qr/ creator=\"$this->{users_web}.WikiGuest\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ created=\"3-Jun-2002\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ due=\"3-Jun-2002\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
$re = qr/ who=\"$this->{users_web}.TWikiGuest\"/o;
$re = qr/ who=\"$this->{users_web}.WikiGuest\"/o;
$this->assert_matches($re, $text); $text =~ s/$re//;
}

Expand Down

0 comments on commit 977e979

Please sign in to comment.