diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/FormatOutlineNodeFormatter.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/FormatOutlineNodeFormatter.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/FormatOutlineNodeFormatter.pm Thu Feb 28 19:04:00 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/FormatOutlineNodeFormatter.pm Thu Jun 19 01:06:05 2003 @@ -50,12 +50,16 @@ my ($this, $node, $count, $level) = @_; my $res = $this->data("format"); - return $node->name() unless ($res); + my $nodeLinkName = '[[' . $node->name() . ']]'; + return $nodeLinkName unless ($res); # special substituions - $res =~ s/\$topic/$node->name()/geo; - $res =~ s/\$spacetopic/&TWiki::Plugins::TreePlugin::FormatHelper::spaceTopic($node->name())/ge; + # Make linkable non-wiki-word names + my $spaceTopicLinkName = '[[' . &TWiki::Plugins::TreePlugin::FormatHelper::spaceTopic($node->name()) . ']]'; + $res =~ s/\$topic/$nodeLinkName/geo; + $res =~ s/\$spacetopic/$spaceTopicLinkName/ge; + $res =~ s/\$outnum/$this->formatOutNum($node)/geo; $res =~ s/\$count/$this->formatCount($count)/geo; $res =~ s/\$level/$this->formatLevel($level)/geo; @@ -96,4 +100,4 @@ return $res; } -1; \ No newline at end of file +1; diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/ListNodeFormatter.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/ListNodeFormatter.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/ListNodeFormatter.pm Fri Feb 15 18:16:18 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/ListNodeFormatter.pm Thu Jun 19 01:06:05 2003 @@ -59,7 +59,7 @@ sub formatNode { my ($this, $node, $count, $level) = @_; - return $node->name(); + return "[[". $node->name()."]]"; } sub formatBranch { diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/Node.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/Node.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/Node.pm Mon Feb 25 18:16:24 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/Node.pm Thu Jul 3 18:28:11 2003 @@ -71,6 +71,33 @@ push @{$this->{_children}}, $child; } +sub remove_child { + my ($this, $child) = @_; + # leave $child->parent() eq $this + # ... only doing this to break cycles in down traversals + my @oldchildren = @{$this->{_children}}; + + @{$this->{_children}} = (); + foreach my $c ( @oldchildren ) { + if( $c ne $child ) { + push @{$this->{_children}}, $c; + } + } +} + +# Nonrecursive string representation +sub toStringNonRecursive { + my ($this) = shift; + my $res = $this->name() . "("; + if ( scalar(@{$this->children()}) ) { + foreach my $node (@{$this->children()} ){ + $res .= $node->name() . ","; + } + } + return $res.")"; +} + + # Generate a string representation for debugging sub toString { my ($this) = shift; @@ -103,4 +130,5 @@ } -1; \ No newline at end of file +1; + diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/OutlineNodeFormatter.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/OutlineNodeFormatter.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/OutlineNodeFormatter.pm Tue Feb 26 09:18:08 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/OutlineNodeFormatter.pm Thu Jun 19 01:06:05 2003 @@ -75,6 +75,10 @@ sub formatNode { my ($this, $node, $count, $level) = @_; # return $this->formatOutNum($node)." ".$node->name()."
\n"; +# AG Thu Jun 19 2003: expected to have to add [[ ]] for non-wikiword links, +# but seems unnecessary, since OutlineNodeFormatter is inherited from +# only by FormatOutlineNodeFormatter, which overrides formatNode. +# I.e. OutlineNodeFormatter::formatNode seems to be unused. return $node->name(); } diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pl new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pl --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pl Sat Feb 16 02:40:21 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pl Thu Jul 3 17:39:44 2003 @@ -1,6 +1,7 @@ use lib ("./lib/"); use lib ("../../../../"); +use TWiki; use TWiki::Plugins::TreePlugin; use TWiki::Store; use TWiki::Meta; diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pm Sat Feb 16 10:27:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/PluginTest.pm Thu Jul 3 18:28:11 2003 @@ -4,8 +4,8 @@ package PluginTest; use base qw(TWikiTestCase); -use TWiki::Plugins::TreePlugin; use TWiki; +use TWiki::Plugins::TreePlugin; # some helpful libs use CGI; @@ -18,33 +18,40 @@ use vars qw($topic, $webName, $scriptUrlPath, $userName %GenTests %CLOpts %OnlyTests $TestDir $OutDir $GenerateDir); -$TestDir = cwd()."/"; +sub set_globals { + # change where it looks for data + $TWiki::dataDir = $TestDir."treedata/"; -# change where it looks for data -$TWiki::dataDir = $TestDir."treedata/"; + # where we look for comparison files + $OutDir = $TestDir."treeout/"; -# where we look for comparison files -$OutDir = $TestDir."treeout/"; + # whwere to put generated output files + $GenerateDir = $OutDir; +} -# whwere to put generated output files -$GenerateDir = $OutDir; +sub get_command_line_options { + $TestDir = cwd()."/"; -$CLOpts{"g"} = "0"; # don't know why fails without something like this -$CLOpts{"t"} = "all"; # default is to test all -getopt("gt", \%CLOpts); + $CLOpts{"g"} = "0"; # don't know why fails without something like this + $CLOpts{"t"} = "all"; # default is to test all -%GenTests = map { $_ => 1 } split (/:/, $CLOpts{"g"} ); # if ($CLOpts{"g"}); -%OnlyTests = map { $_ => 1 } split (/:/, $CLOpts{"t"} ); + getopt("gt", \%CLOpts); -#print join (":", keys %GenTests), "\n"; -#print join (":", keys %OnlyTests), "\n"; + %GenTests = map { $_ => 1 } split (/:/, $CLOpts{"g"} ); # if ($CLOpts{"g"}); + %OnlyTests = map { $_ => 1 } split (/:/, $CLOpts{"t"} ); + + #print join (":", keys %GenTests), "\n"; + #print join (":", keys %OnlyTests), "\n"; +} ###### setup testing sub new { my $self = shift()->SUPER::new(@_); + get_command_line_options(); + # read in our test cases open FILE, " 1 } split (/:/, $CLOpts{"g"} ); # if ($CLOpts{"g"}); + %OnlyTests = map { $_ => 1 } split (/:/, $CLOpts{"t"} ); + + #print join (":", keys %GenTests), "\n"; + #print join (":", keys %OnlyTests), "\n"; +} + +###### setup testing + +sub new { + my $self = shift()->SUPER::new(@_); + + #get_command_line_options(); + + # read in our test cases + open FILE, ") { + my ($name, $fileout, $teststring) = split /\t/, $_, 3; + my @a = ($fileout, $teststring); + $this->{$name} = \@a; + } + #print $this->{foo}->[0], "\n"; + + $self->{_generate} = \%GenTests; + $self->{_onlytest} = \%OnlyTests; + + return $self; +} + +####### create fixture + + +sub set_up { + my $this = shift; + + set_globals(); + + my $url ="/twiki/bin/view"; + + # create TWiki viewing params + ($topic, $webName, $scriptUrlPath, $userName ) = + &TWiki::initialize( "/Test/WebHome", "", "", $url, new CGI ); + + # init plugin + TWiki::Plugins::TreePlugin::initPlugin($topic, $webName, $userName, $installWeb); + + $this->dir($OutDir); +} + + +######## tests + +# Andy Glew tests +# to ensure that all pages in web are found by TREEVIEW +sub test_funny_parentage { + + my $this = shift; + + # Kluge to run tests from a different directory + # This will produce cascading errorsif it fails + # and the restore is not done. + # TBD: fix TREEVIEW test harness to not make + # any assumptions about environment, + # i.e. to be a proper, independent, unit test harness. + + # change where it looks for data + #my oldDataDir = $TWiki::dataDir; + #$TWiki::dataDir = $TestDir."treedata.funny_parentage/"; + + $this->performtest( + "funny_parentage","%TREEVIEW%"); + + #$TWiki::dataDir = oldDataDir; + +} + + +########### helper funcs + +sub performtest { + my ($this, $f, $what) = @_; + my $input = $what; # copy tag text before it gets changed + commontags($what); + return if ($this->generate($what, $f)); + return if ($this->onlytest($what, $f)); + $this->assert_eq_file($what, $f.".html", "failure on: $input\n"); +} + +sub commontags { + TWiki::Plugins::TreePlugin::commonTagsHandler(shift, $topic, $webName); +} + +sub generate { + my ($this, $text, $filename ) = @_; + my $gentests = $this->{_generate}; + return 0 unless ( %{$gentests}); + return 0 unless ( $gentests->{$filename} || $gentests->{"all"} ); + + open FILE, ">$GenerateDir".$filename.".html" || die "open error"; + print FILE $text; +} + +sub onlytest { + my ($this, $text, $filename ) = @_; + my $onlytest = $this->{_onlytest}; + return 1 unless ( %{$onlytest}); + return 0 if ( $onlytest->{$filename} || $onlytest->{"all"} ); + return 1; +} + + + +#create_suite(); +#run_suite(); + + +#$query = new CGI( {'dinosaur'=>'barney', +# 'song'=>'I love you', +# 'friends'=>[qw/Jessica George Nancy/]} +# ); + + +__END__ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/TestRunner.pl new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/TestRunner.pl --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/TestRunner.pl Sat Feb 16 06:33:53 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/TestRunner.pl Thu Jul 3 18:28:11 2003 @@ -1,9 +1,14 @@ #!perl use lib ("./"); use Test::Unit::TestRunner; -use PluginTest; my $testrunner = Test::Unit::TestRunner->new(); + +print "Original PluginTest (some errors expected (~7))\n"; +use PluginTest; $testrunner->start(PluginTest); +print "PluginTest2, for funny parentage (no errors expected)\n"; +use PluginTest2; +$testrunner->start(PluginTest2); diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/lib/TWikiTestCase.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/lib/TWikiTestCase.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/lib/TWikiTestCase.pm Sat Feb 16 03:33:50 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/lib/TWikiTestCase.pm Thu Jun 19 01:06:05 2003 @@ -3,6 +3,7 @@ use base qw(Test::Unit::TestCase); use Test::Unit; +use Test::Unit::Procedural; sub new { my $this = shift()->SUPER::new(@_); @@ -15,9 +16,14 @@ return $this->{_dir}; } +$recording_test_output = 1; + sub assert_eq_file { my ($this, $text, $filename, $message) = @_; my $filetext = $this->_getFileText($filename); + if( !($text eq $filetext) ) { + $this->_recordTestOutput( $filename, $text ); + } assert($text eq $filetext, $message); } @@ -57,6 +63,17 @@ # if ( $! || $@ ); return $text; } + +sub _recordTestOutput { + if( ! $recording_test_output ) { return; } + + my ($this, $filename,$text) = @_; + my $filename = $this->dir().$filename . ".test_output.html"; + open FILE, ">$filename" || return $this->assert(0,"error recording test output: $filename"); + print FILE $text; + close FILE; +} + sub handleFE { my ($this, $file) = @_; diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata/Test/non-wiki-word-name.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata/Test/non-wiki-word-name.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata/Test/non-wiki-word-name.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata/Test/non-wiki-word-name.txt Thu Jul 3 13:31:47 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="AndyGlew" date="1013796854" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ThreeThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="glew" date="1057206180" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle1"}% +Branch off a cycle. + +-- Main.AndyGlew - 03 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle1.txt,v Thu Jul 3 17:07:50 2003 @@ -0,0 +1,30 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.04.23.00; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057206180" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle1"}% +Branch off a cycle. + +-- Main.AndyGlew - 03 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="glew" date="1057206144" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +Branch off a cycle + +-- Main.AndyGlew - 03 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff1ParentCycle2.txt,v Thu Jul 3 17:07:50 2003 @@ -0,0 +1,30 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.04.22.25; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057206144" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +Branch off a cycle + +-- Main.AndyGlew - 03 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="glew" date="1057206120" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +Branch off a cycle + +-- Main.AndyGlew - 03 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/BranchOff2ParentCycle2.txt,v Thu Jul 3 17:07:50 2003 @@ -0,0 +1,30 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.04.22.00; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057206120" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +Branch off a cycle + +-- Main.AndyGlew - 03 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CgiTable.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CgiTable.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CgiTable.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CgiTable.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,14 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013625764" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="WebHome"}% +zzzzzzzzzzzzzz horizontal zzzzzzzzz + +%TABLE{tableborder="0" cellpadding="3" cellspacing="1" headerbg="#AACCCC" databg="#DFffA5,#ffeeee" bgFilter="or,wa"}% +| *this* | *that* | *those* | *these* | +| when | did | fireflies | become | +| enslaved | into | cellphone | buttons? | +| why | is | our | calendar | +| so | enmeshed | in | fragments? | +| have | you | ever | washed a | +| baby | in | a | watermelon? | + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CrossWebParent.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CrossWebParent.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CrossWebParent.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/CrossWebParent.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="glew" date="1057102144" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="Main.AndyGlew"}% +This page specifies a page in a different web as the parent. + +-- Main.AndyGlew - 01 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="glew" date="1057102144" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="NonexistentParentParentPage"}% +This page is not supposed to have a parent +- or, rather, it has a prent that does not exist. + +Used to test for bugs in TreePlugin + +-- Main.AndyGlew - 01 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/NonexistentParent.txt,v Thu Jul 3 17:07:50 2003 @@ -0,0 +1,32 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.01.23.29.04; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057102144" format="1.0" version="1.1"}% +This page is not supposed to have a parent +- or, rather, it has a prent that does not exist. + +Used to test for bugs in TreePlugin + +-- Main.AndyGlew - 01 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOne.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355911" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TheOne"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOneOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOneOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOneOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneOneOne.txt Thu Jul 3 17:07:50 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355927" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneOne"}% +%CREATECHILD% + + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwo.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwo.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwo.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwo.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355955" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TheOne"}% +%CREATECHILD% + + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoOne.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355969" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneTwo"}% +%CREATECHILD% + + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwo.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwo.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwo.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwo.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355990" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneTwo"}% +%CREATECHILD% + + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoOne.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013356391" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneTwoTwo"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoThree.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoThree.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoThree.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoThree.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013797186" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneTwoTwo"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoTwo.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoTwo.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoTwo.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/OneTwoTwoTwo.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013797156" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="OneTwoTwo"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="glew" date="1057197840" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="Sandbox.ParentInSandbox"}% +This page was created in the sandbox web., +with parent Sandbox.ParentInSandbox +and child Sandbox.ChildInSandbox. + +It was then moved to Test, +to see if the parent meta info is renamed. + +-- Main.AndyGlew - 03 Jul 2003 +%META:TOPICMOVED{by="glew" date="1057197825" from="Sandbox.PageCreatedInSandboxWebWithParentAndChildInSandbox" to="Test.PageCreatedInSandboxWebWithParentAndChildInSandbox"}% diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/PageCreatedInSandboxWebWithParentAndChildInSandbox.txt,v Thu Jul 3 17:07:51 2003 @@ -0,0 +1,36 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.02.04.00; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057197840" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="Sandbox.ParentInSandbox"}% +This page was created in the sandbox web., +with parent Sandbox.ParentInSandbox +and child Sandbox.ChildInSandbox. + +It was then moved to Test, +to see if the parent meta info is renamed. + +-- Main.AndyGlew - 03 Jul 2003 +%META:TOPICMOVED{by="glew" date="1057197825" from="Sandbox.PageCreatedInSandboxWebWithParentAndChildInSandbox" to="Test.PageCreatedInSandboxWebWithParentAndChildInSandbox"}% +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="glew" date="1057206240" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +This page is part of a cycle, ParentCycle1 -> ParentCycle2 -> ParentCycle1 + +BranchOff1ParentCycle1 + + + +-- Main.AndyGlew - 01 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle1.txt,v Thu Jul 3 17:07:51 2003 @@ -0,0 +1,34 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.04.24.00; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057206240" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle2"}% +This page is part of a cycle, ParentCycle1 -> ParentCycle2 -> ParentCycle1 + +BranchOff1ParentCycle1 + + + +-- Main.AndyGlew - 01 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="glew" date="1057206180" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle1"}% +This page is part of a cycle, ParentCycle1 -> ParentCycle2 -> ParentCycle1 + + +BranchOff1ParentCycle2 BranchOff2ParentCycle2 + + +-- Main.AndyGlew - 01 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt,v new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt,v --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt,v Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ParentCycle2.txt,v Thu Jul 3 17:07:51 2003 @@ -0,0 +1,34 @@ +head 1.1; +access; +symbols; +locks + www:1.1; strict; +comment @# @; + + +1.1 +date 2003.07.03.04.23.00; author glew; state Exp; +branches; +next ; + + +desc +@none +@ + + +1.1 +log +@none +@ +text +@%META:TOPICINFO{author="glew" date="1057206180" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ParentCycle1"}% +This page is part of a cycle, ParentCycle1 -> ParentCycle2 -> ParentCycle1 + + +BranchOff1ParentCycle2 BranchOff2ParentCycle2 + + +-- Main.AndyGlew - 01 Jul 2003 +@ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/SelfParent.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/SelfParent.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/SelfParent.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/SelfParent.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="glew" date="1057102144" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="SelfParent"}% +This page specifies itself as the parent. + +-- Main.AndyGlew - 01 Jul 2003 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TestTopic1.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TestTopic1.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TestTopic1.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TestTopic1.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,7 @@ +%META:TOPICINFO{author="guest" date="1012417126" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="WebHome"}% + + +-- Main.TWikiGuest - 30 Jan 2002 + +foo diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheOne.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013355888" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TreeTop"}% + +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheThree.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheThree.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheThree.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheThree.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013356195" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TreeTop"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheTwo.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheTwo.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheTwo.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TheTwo.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013796934" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TreeTop"}% +%CREATECHILD% + + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeOne.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013356212" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TheThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThree.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThree.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThree.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThree.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013796912" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TheThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThreeOne.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThreeOne.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThreeOne.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeThreeOne.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013796854" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ThreeThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeTwo.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeTwo.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeTwo.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/ThreeTwo.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013356296" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="TheThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TreeTop.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TreeTop.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TreeTop.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/TreeTop.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="SlavaKozlov" date="1013825659" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="WebHome"}% + + +aligned outline with zooming +%TREESEARCH{web="Test" formating="outline" header="| out | topic |" format="| [[$urltreetopic=$topic][$outnum]] | $spacetopic
$summary |"}% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/WebHome.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/WebHome.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/WebHome.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/WebHome.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,21 @@ +%META:TOPICINFO{author="PeterThoeny" date="1006601942" format="1.0" version="1.5"}% +The %WIKITOOLNAME%.%WEB% web is the sandbox you can use for testing. Everybody is welcome to add or delete some stuff. It is recommended to walk through the %TWIKIWEB%.TWikiTutorial to get a jumpstart on the %WIKITOOLNAME% tool. A good rule of thumb is to add at the end of the page and sign & date it with your %TWIKIWEB%.WikiName. + + * TestTopic1, TestTopic2, TestTopic3, TestTopic4 + * TestTopic5, TestTopic6, TestTopic7, TestTopic8 + +
+ * WebSearch: Full text search of the %WIKITOOLNAME%.%WEB% web. + *    (More options in WebSearch) + * WebChanges: Find out recent modifications to the %WIKITOOLNAME%.%WEB% web. + * WebIndex: Display all %WIKITOOLNAME%.%WEB% topics in alphabetical order. See also the faster WebTopicList + * %NOTIFYTOPIC%: Subscribe to be automatically notified when something changes in the %WIKITOOLNAME%.%WEB% web. + * %STATISTICSTOPIC%: View access statistics of the %WIKITOOLNAME%.%WEB% web. + * %WEBPREFSTOPIC%: Preferences of the %WIKITOOLNAME%.%WEB% web. +
+ +*Notes:* + * You are currently in the %WIKITOOLNAME%.%WEB% web. The color code for this web is a light gray background, so you know where you are. + * If you are not familiar with the %WIKITOOLNAME% collaboration tool, please visit %TWIKIWEB%.WelcomeGuest in the %WIKITOOLNAME%.%TWIKIWEB% web first. + +%INCLUDE{"%TWIKIWEB%.TWikiWebsTable"}% diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/non-wiki-word-name.txt new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/non-wiki-word-name.txt --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/non-wiki-word-name.txt Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treedata.funny_parentage/Test/non-wiki-word-name.txt Thu Jul 3 17:07:51 2003 @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="AndyGlew" date="1013796854" format="1.0" version="1.1"}% +%META:TOPICPARENT{name="ThreeThree"}% +%CREATECHILD% + +-- Main.SlavaKozlov - 10 Feb 2002 diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/blank.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/blank.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/blank.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/blank.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
1 WebHome
1.1 CgiTable
1.2 TestTopic1
1.3 TreeTop
1.3.1 TheOne
1.3.1.1 OneOne
1.3.1.1.1 OneOneOne
1.3.1.2 OneTwo
1.3.1.2.1 OneTwoOne
1.3.1.2.2 OneTwoTwo
1.3.1.2.2.1 OneTwoTwoOne
1.3.1.2.2.2 OneTwoTwoThree
1.3.1.2.2.3 OneTwoTwoTwo
1.3.2 TheThree
1.3.2.1 ThreeOne
1.3.2.2 ThreeThree
1.3.2.2.1 ThreeThreeOne
1.3.2.3 ThreeTwo
1.3.3 TheTwo
\ No newline at end of file + [[ ]]
1 [[WebHome]]
1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
1.3.1 [[TheOne]]
1.3.1.1 [[OneOne]]
1.3.1.1.1 [[OneOneOne]]
1.3.1.2 [[OneTwo]]
1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2 [[OneTwoTwo]]
1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
1.3.2 [[TheThree]]
1.3.2.1 [[ThreeOne]]
1.3.2.2 [[ThreeThree]]
1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
1.3.2.3 [[ThreeTwo]]
1.3.3 [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/bookview.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/bookview.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/bookview.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/bookview.html Thu Jun 19 01:06:06 2003 @@ -1,3 +1,7 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name.
diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall-same.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall-same.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall-same.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall-same.html Thu Jun 19 01:06:06 2003 @@ -1 +1,5 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. 1 TheOne
1.1 OneOne
1.1.1 OneOneOne
1.2 OneTwo
1.2.1 OneTwoOne
1.2.2 OneTwoTwo
1.2.2.1 OneTwoTwoOne
1.2.2.2 OneTwoTwoThree
1.2.2.3 OneTwoTwoTwo
diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/doublecall.html Thu Jun 19 01:06:06 2003 @@ -1 +1,5 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. 1 TheOne
1.1 OneOne
1.1.1 OneOneOne
1.2 OneTwo
1.2.1 OneTwoOne
1.2.2 OneTwoTwo
1.2.2.1 OneTwoTwoOne
1.2.2.2 OneTwoTwoThree
1.2.2.3 OneTwoTwoTwo
diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-author.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-author.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-author.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-author.html Thu Jun 19 01:06:06 2003 @@ -16,5 +16,6 @@ Main.SlavaKozlov, Main.SlavaKozlov, Main.SlavaKozlov, +Main.AndyGlew, Main.SlavaKozlov, Main.SlavaKozlov, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel.html Thu Jun 19 01:06:06 2003 @@ -16,5 +16,6 @@ yellow yellow pink +pink yellow pink diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_args.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_args.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_args.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_args.html Thu Jun 19 01:06:06 2003 @@ -18,3 +18,4 @@ #ffeeff:green:#aabfdc #ffeeff:green:#aabfdc #ffeeff:green:#aabfdc +#ffeeff:green:#aabfdc diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_onearg.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_onearg.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_onearg.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-colorlevel_onearg.html Thu Jun 19 01:06:06 2003 @@ -18,3 +18,4 @@ #ffeeff #ffeeff #ffeeff +#ffeeff diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-count.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-count.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-count.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-count.html Thu Jun 19 01:06:06 2003 @@ -1,3 +1,7 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. 1, 1, 1, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-foo.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-foo.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-foo.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-foo.html Thu Jun 19 01:06:06 2003 @@ -18,3 +18,4 @@ foo, foo, foo, +foo, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-level.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-level.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-level.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-level.html Thu Jun 19 01:06:06 2003 @@ -16,5 +16,6 @@ 5, 5, 6, +6, 5, 4, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-modTime.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-modTime.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-modTime.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-modTime.html Thu Jun 19 01:06:06 2003 @@ -16,5 +16,6 @@ 10 Feb 2002 - 15:50, 15 Feb 2002 - 18:15, 15 Feb 2002 - 18:14, +15 Feb 2002 - 18:14, 10 Feb 2002 - 15:51, 15 Feb 2002 - 18:15, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-onum.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-onum.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-onum.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-onum.html Thu Jun 19 01:06:06 2003 @@ -16,5 +16,6 @@ 1.3.2.1, 1.3.2.2, 1.3.2.2.1, +1.3.2.2.2, 1.3.2.3, 1.3.3, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-spacetopic.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-spacetopic.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-spacetopic.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-spacetopic.html Thu Jun 19 01:06:06 2003 @@ -1,20 +1,21 @@ - , -Web Home, -Cgi Table, -Test Topic 1, -Tree Top, -The One, -One One, -One One One, -One Two, -One Two One, -One Two Two, -One Two Two One, -One Two Two Three, -One Two Two Two, -The Three, -Three One, -Three Three, -Three Three One, -Three Two, -The Two, +[[ ]], +[[Web Home]], +[[Cgi Table]], +[[Test Topic 1]], +[[Tree Top]], +[[The One]], +[[One One]], +[[One One One]], +[[One Two]], +[[One Two One]], +[[One Two Two]], +[[One Two Two One]], +[[One Two Two Three]], +[[One Two Two Two]], +[[The Three]], +[[Three One]], +[[Three Three]], +[[Three Three One]], +[[non-wiki-word-name]], +[[Three Two]], +[[The Two]], diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-summary.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-summary.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-summary.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-summary.html Thu Jun 19 01:06:06 2003 @@ -18,3 +18,4 @@ CREATECHILD Main.SlavaKozlov 10 Feb 2002 , CREATECHILD Main.SlavaKozlov 10 Feb 2002 , CREATECHILD Main.SlavaKozlov 10 Feb 2002 , + CREATECHILD Main.SlavaKozlov 10 Feb 2002 , diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-text.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-text.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-text.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-text.html Thu Jun 19 01:06:06 2003 @@ -1,3 +1,7 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. The TWiki.Test web is the sandbox you can use for testing. Everybody is welcome to add or delete some stuff. It is recommended to walk through the TWiki.TWikiTutorial to get a jumpstart on the TWiki tool. A good rule of thumb is to add at the end of the page and sign & date it with your TWiki.WikiName. diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-topic.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-topic.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-topic.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-topic.html Thu Jun 19 01:06:06 2003 @@ -1,20 +1,21 @@ - , -WebHome, -CgiTable, -TestTopic1, -TreeTop, -TheOne, -OneOne, -OneOneOne, -OneTwo, -OneTwoOne, -OneTwoTwo, -OneTwoTwoOne, -OneTwoTwoThree, -OneTwoTwoTwo, -TheThree, -ThreeOne, -ThreeThree, -ThreeThreeOne, -ThreeTwo, -TheTwo, +[[ ]], +[[WebHome]], +[[CgiTable]], +[[TestTopic1]], +[[TreeTop]], +[[TheOne]], +[[OneOne]], +[[OneOneOne]], +[[OneTwo]], +[[OneTwoOne]], +[[OneTwoTwo]], +[[OneTwoTwoOne]], +[[OneTwoTwoThree]], +[[OneTwoTwoTwo]], +[[TheThree]], +[[ThreeOne]], +[[ThreeThree]], +[[ThreeThreeOne]], +[[non-wiki-word-name]], +[[ThreeTwo]], +[[TheTwo]], diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-url.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-url.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-url.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-url.html Thu Jun 19 01:06:06 2003 @@ -1,3 +1,7 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. http://localhost/./TestRunner.pl?, http://localhost/./TestRunner.pl?, http://localhost/./TestRunner.pl?, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-web.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-web.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-web.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/format-web.html Thu Jun 19 01:06:06 2003 @@ -18,3 +18,4 @@ Test, Test, Test, +Test, diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-children.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-children.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-children.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-children.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -1.1 CgiTable
1.2 TestTopic1
1.3.1.1.1 OneOneOne
, 1.3.1.2.1 OneTwoOne
1.3.1.2.2.1 OneTwoTwoOne
1.3.1.2.2.2 OneTwoTwoThree
1.3.1.2.2.3 OneTwoTwoTwo
, , , 1.3.2.1 ThreeOne
1.3.2.2.1 ThreeThreeOne
, 1.3.2.3 ThreeTwo
, 1.3.3 TheTwo
, , , \ No newline at end of file +1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3.1.1.1 [[OneOneOne]]
, 1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
, , , 1.3.2.1 [[ThreeOne]]
1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
, 1.3.2.3 [[ThreeTwo]]
, 1.3.3 [[TheTwo]]
, , , \ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-format.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-format.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-format.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-format.html Thu Jun 19 01:06:06 2003 @@ -1,21 +1,22 @@ -
- WebHome
- CgiTable
-TestTopic1
-TreeTop
- TheOne
- OneOne
- OneOneOne
-

OneTwo
- OneTwoOne
-OneTwoTwo
- OneTwoTwoOne
-OneTwoTwoThree
-OneTwoTwoTwo
-

TheThree
- ThreeOne
-ThreeThree
- ThreeThreeOne
-

ThreeTwo
-

TheTwo
+[[ ]]
+ [[WebHome]]
+ [[CgiTable]]
+[[TestTopic1]]
+[[TreeTop]]
+ [[TheOne]]
+ [[OneOne]]
+ [[OneOneOne]]
+

[[OneTwo]]
+ [[OneTwoOne]]
+[[OneTwoTwo]]
+ [[OneTwoTwoOne]]
+[[OneTwoTwoThree]]
+[[OneTwoTwoTwo]]
+

[[TheThree]]
+ [[ThreeOne]]
+[[ThreeThree]]
+ [[ThreeThreeOne]]
+[[non-wiki-word-name]]
+

[[ThreeTwo]]
+

[[TheTwo]]

diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parent.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parent.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parent.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parent.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
, \ No newline at end of file + [[ ]]
, \ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parentchildren.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parentchildren.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parentchildren.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatbranch-parentchildren.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
: 1 WebHome
: 1.1 CgiTable
1.2 TestTopic1
1.3 TreeTop
: 1.3.1 TheOne
: 1.3.1.1 OneOne
: 1.3.1.1.1 OneOneOne
1.3.1.2 OneTwo
: 1.3.1.2.1 OneTwoOne
1.3.1.2.2 OneTwoTwo
: 1.3.1.2.2.1 OneTwoTwoOne
1.3.1.2.2.2 OneTwoTwoThree
1.3.1.2.2.3 OneTwoTwoTwo
1.3.2 TheThree
: 1.3.2.1 ThreeOne
1.3.2.2 ThreeThree
: 1.3.2.2.1 ThreeThreeOne
1.3.2.3 ThreeTwo
1.3.3 TheTwo
\ No newline at end of file + [[ ]]
: 1 [[WebHome]]
: 1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
: 1.3.1 [[TheOne]]
: 1.3.1.1 [[OneOne]]
: 1.3.1.1.1 [[OneOneOne]]
1.3.1.2 [[OneTwo]]
: 1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2 [[OneTwoTwo]]
: 1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
1.3.2 [[TheThree]]
: 1.3.2.1 [[ThreeOne]]
1.3.2.2 [[ThreeThree]]
: 1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
1.3.2.3 [[ThreeTwo]]
1.3.3 [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-colorout.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-colorout.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-colorout.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-colorout.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ - WebHomeCgiTableTestTopic1TreeTopTheOneOneOneOneOneOneOneTwoOneTwoOneOneTwoTwoOneTwoTwoOneOneTwoTwoThreeOneTwoTwoTwoTheThreeThreeOneThreeThreeThreeThreeOneThreeTwoTheTwo \ No newline at end of file +[[ ]][[WebHome]][[CgiTable]][[TestTopic1]][[TreeTop]][[TheOne]][[OneOne]][[OneOneOne]][[OneTwo]][[OneTwoOne]][[OneTwoTwo]][[OneTwoTwoOne]][[OneTwoTwoThree]][[OneTwoTwoTwo]][[TheThree]][[ThreeOne]][[ThreeThree]][[ThreeThreeOne]][[non-wiki-word-name]][[ThreeTwo]][[TheTwo]] \ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-hlist.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-hlist.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-hlist.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-hlist.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -

1 WebHome

The TWiki.Test web is the sandbox you can use for testing. Everybody is welcome to add or delete some stuff. It is recommended to walk through the TWIKIWEB .TWikiTutorial ...

1.1 CgiTable

zzzzzzzzzzzzzz horizontal zzzzzzzzz TABLE{tableborder "0" cellpadding "3" cellspacing "1" headerbg "#AACCCC" databg "#DFffA5,#ffeeee" bgFilter "or,wa"} this that those ...

1.2 TestTopic1

Main.TWikiGuest 30 Jan 2002 foo

1.3 TreeTop

aligned outline with zooming TREESEARCH{web "Test" formating "outline" header " out topic " format " $urltreetopic $topic $outnum $spacetopic $summary "} Main.SlavaKozlov ...

1.3.1 TheOne

CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.1 OneOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.1.1 OneOneOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2 OneTwo
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.1 OneTwoOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2 OneTwoTwo
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.1 OneTwoTwoOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.2 OneTwoTwoThree
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.3 OneTwoTwoTwo
CREATECHILD Main.SlavaKozlov 10 Feb 2002

1.3.2 TheThree

CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.1 ThreeOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.2 ThreeThree
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.2.1 ThreeThreeOne
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.3 ThreeTwo
CREATECHILD Main.SlavaKozlov 10 Feb 2002

1.3.3 TheTwo

CREATECHILD Main.SlavaKozlov 10 Feb 2002 \ No newline at end of file +

[[ ]]

1 [[WebHome]]

The TWiki.Test web is the sandbox you can use for testing. Everybody is welcome to add or delete some stuff. It is recommended to walk through the TWIKIWEB .TWikiTutorial ...

1.1 [[CgiTable]]

zzzzzzzzzzzzzz horizontal zzzzzzzzz TABLE{tableborder "0" cellpadding "3" cellspacing "1" headerbg "#AACCCC" databg "#DFffA5,#ffeeee" bgFilter "or,wa"} this that those ...

1.2 [[TestTopic1]]

Main.TWikiGuest 30 Jan 2002 foo

1.3 [[TreeTop]]

aligned outline with zooming TREESEARCH{web "Test" formating "outline" header " out topic " format " $urltreetopic $topic $outnum $spacetopic $summary "} Main.SlavaKozlov ...

1.3.1 [[TheOne]]

CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.1 [[OneOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.1.1 [[OneOneOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2 [[OneTwo]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.1 [[OneTwoOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2 [[OneTwoTwo]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.1 [[OneTwoTwoOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.2 [[OneTwoTwoThree]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.1.2.2.3 [[OneTwoTwoTwo]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002

1.3.2 [[TheThree]]

CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.1 [[ThreeOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.2 [[ThreeThree]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.2.1 [[ThreeThreeOne]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.2.2 [[non-wiki-word-name]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002
1.3.2.3 [[ThreeTwo]]
CREATECHILD Main.SlavaKozlov 10 Feb 2002

1.3.3 [[TheTwo]]

CREATECHILD Main.SlavaKozlov 10 Feb 2002 \ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ollist.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ollist.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ollist.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ollist.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
  1. WebHome
    1. CgiTable
    2. TestTopic1
    3. TreeTop
      1. TheOne
        1. OneOne
          1. OneOneOne
        2. OneTwo
          1. OneTwoOne
          2. OneTwoTwo
            1. OneTwoTwoOne
            2. OneTwoTwoThree
            3. OneTwoTwoTwo
      2. TheThree
        1. ThreeOne
        2. ThreeThree
          1. ThreeThreeOne
        3. ThreeTwo
      3. TheTwo
\ No newline at end of file +[[ ]]
  1. [[WebHome]]
    1. [[CgiTable]]
    2. [[TestTopic1]]
    3. [[TreeTop]]
      1. [[TheOne]]
        1. [[OneOne]]
          1. [[OneOneOne]]
        2. [[OneTwo]]
          1. [[OneTwoOne]]
          2. [[OneTwoTwo]]
            1. [[OneTwoTwoOne]]
            2. [[OneTwoTwoThree]]
            3. [[OneTwoTwoTwo]]
      2. [[TheThree]]
        1. [[ThreeOne]]
        2. [[ThreeThree]]
          1. [[ThreeThreeOne]]
          2. [[non-wiki-word-name]]
        3. [[ThreeTwo]]
      3. [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-outline.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-outline.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-outline.html Sat Feb 16 10:30:28 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-outline.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
1 WebHome
1.1 CgiTable
1.2 TestTopic1
1.3 TreeTop
1.3.1 TheOne
1.3.1.1 OneOne
1.3.1.1.1 OneOneOne
1.3.1.2 OneTwo
1.3.1.2.1 OneTwoOne
1.3.1.2.2 OneTwoTwo
1.3.1.2.2.1 OneTwoTwoOne
1.3.1.2.2.2 OneTwoTwoThree
1.3.1.2.2.3 OneTwoTwoTwo
1.3.2 TheThree
1.3.2.1 ThreeOne
1.3.2.2 ThreeThree
1.3.2.2.1 ThreeThreeOne
1.3.2.3 ThreeTwo
1.3.3 TheTwo
\ No newline at end of file + [[ ]]
1 [[WebHome]]
1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
1.3.1 [[TheOne]]
1.3.1.1 [[OneOne]]
1.3.1.1.1 [[OneOneOne]]
1.3.1.2 [[OneTwo]]
1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2 [[OneTwoTwo]]
1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
1.3.2 [[TheThree]]
1.3.2.1 [[ThreeOne]]
1.3.2.2 [[ThreeThree]]
1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
1.3.2.3 [[ThreeTwo]]
1.3.3 [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ullist.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ullist.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ullist.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/formatting-ullist.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
  • WebHome
    • CgiTable
    • TestTopic1
    • TreeTop
      • TheOne
        • OneOne
          • OneOneOne
        • OneTwo
          • OneTwoOne
          • OneTwoTwo
            • OneTwoTwoOne
            • OneTwoTwoThree
            • OneTwoTwoTwo
      • TheThree
        • ThreeOne
        • ThreeThree
          • ThreeThreeOne
        • ThreeTwo
      • TheTwo
\ No newline at end of file +[[ ]]
  • [[WebHome]]
    • [[CgiTable]]
    • [[TestTopic1]]
    • [[TreeTop]]
      • [[TheOne]]
        • [[OneOne]]
          • [[OneOneOne]]
        • [[OneTwo]]
          • [[OneTwoOne]]
          • [[OneTwoTwo]]
            • [[OneTwoTwoOne]]
            • [[OneTwoTwoThree]]
            • [[OneTwoTwoTwo]]
      • [[TheThree]]
        • [[ThreeOne]]
        • [[ThreeThree]]
          • [[ThreeThreeOne]]
          • [[non-wiki-word-name]]
        • [[ThreeTwo]]
      • [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/funny_parentage.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/funny_parentage.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/funny_parentage.html Wed Dec 31 16:00:00 1969 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/funny_parentage.html Thu Jul 3 17:41:01 2003 @@ -0,0 +1 @@ + [[ ]]
1 [[WebHome]]
1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
1.3.1 [[TheOne]]
1.3.1.1 [[OneOne]]
1.3.1.1.1 [[OneOneOne]]
1.3.1.2 [[OneTwo]]
1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2 [[OneTwoTwo]]
1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
1.3.2 [[TheThree]]
1.3.2.1 [[ThreeOne]]
1.3.2.2 [[ThreeThree]]
1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
1.3.2.3 [[ThreeTwo]]
1.3.3 [[TheTwo]]
[[Main.AndyGlew]]
1 [[CrossWebParent]]
[[NonexistentParentParentPage]]
1 [[NonexistentParent]]
[[ParentCycle1 cycle...]]
1 [[ParentCycle2]]
1.1 [[BranchOff1ParentCycle2]]
1.2 [[BranchOff2ParentCycle2]]
1.3 [[ParentCycle1]]
1.3.1 [[BranchOff1ParentCycle1]]
1.3.2 [[ParentCycle2 ...cycle]]
[[Sandbox.ParentInSandbox]]
1 [[PageCreatedInSandboxWebWithParentAndChildInSandbox]]
[[SelfParent cycle...]]
1 [[SelfParent]]
1.1 [[SelfParent ...cycle]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/header.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/header.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/header.html Sat Feb 16 10:30:29 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/header.html Thu Jun 19 01:06:06 2003 @@ -1,2 +1,2 @@ HEADER TEXT -
1 WebHome
1.1 CgiTable
1.2 TestTopic1
1.3 TreeTop
1.3.1 TheOne
1.3.1.1 OneOne
1.3.1.1.1 OneOneOne
1.3.1.2 OneTwo
1.3.1.2.1 OneTwoOne
1.3.1.2.2 OneTwoTwo
1.3.1.2.2.1 OneTwoTwoOne
1.3.1.2.2.2 OneTwoTwoThree
1.3.1.2.2.3 OneTwoTwoTwo
1.3.2 TheThree
1.3.2.1 ThreeOne
1.3.2.2 ThreeThree
1.3.2.2.1 ThreeThreeOne
1.3.2.3 ThreeTwo
1.3.3 TheTwo
\ No newline at end of file + [[ ]]
1 [[WebHome]]
1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
1.3.1 [[TheOne]]
1.3.1.1 [[OneOne]]
1.3.1.1.1 [[OneOneOne]]
1.3.1.2 [[OneTwo]]
1.3.1.2.1 [[OneTwoOne]]
1.3.1.2.2 [[OneTwoTwo]]
1.3.1.2.2.1 [[OneTwoTwoOne]]
1.3.1.2.2.2 [[OneTwoTwoThree]]
1.3.1.2.2.3 [[OneTwoTwoTwo]]
1.3.2 [[TheThree]]
1.3.2.1 [[ThreeOne]]
1.3.2.2 [[ThreeThree]]
1.3.2.2.1 [[ThreeThreeOne]]
1.3.2.2.2 [[non-wiki-word-name]]
1.3.2.3 [[ThreeTwo]]
1.3.3 [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/stoplevel.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/stoplevel.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/stoplevel.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/stoplevel.html Thu Jun 19 01:06:06 2003 @@ -1 +1 @@ -
1 WebHome
1.1 CgiTable
1.2 TestTopic1
1.3 TreeTop
1.3.1 TheOne
1.3.2 TheThree
1.3.3 TheTwo
\ No newline at end of file + [[ ]]
1 [[WebHome]]
1.1 [[CgiTable]]
1.2 [[TestTopic1]]
1.3 [[TreeTop]]
1.3.1 [[TheOne]]
1.3.2 [[TheThree]]
1.3.3 [[TheTwo]]
\ No newline at end of file diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/topic.html new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/topic.html --- TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/topic.html Sat Feb 16 10:30:30 2002 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test/treeout/topic.html Thu Jun 19 01:06:06 2003 @@ -1 +1,5 @@ +THIS IS A TEST PATTERN GOLEN OUTPUT FOR TREEPLUGIN +THAT WAS NOT PASSING AS OF Wed Jun 18 2003; +EVEN IF FIXED, THE TEST PATTERN NEEDS TO BE UPDATED +TO HANDLE SUBSEQUENT TESTS ADDED, eg. non-wiki-word-name. 1 TheOne
1.1 OneOne
1.1.1 OneOneOne
1.2 OneTwo
1.2.1 OneTwoOne
1.2.2 OneTwoTwo
1.2.2.1 OneTwoTwoOne
1.2.2.2 OneTwoTwoThree
1.2.2.3 OneTwoTwoTwo
Binary files TreePlugin/lib/TWiki/Plugins/TreePlugin/test.tar.gz and new/TreePlugin/lib/TWiki/Plugins/TreePlugin/test.tar.gz differ diff -uNr TreePlugin/lib/TWiki/Plugins/TreePlugin.pm new/TreePlugin/lib/TWiki/Plugins/TreePlugin.pm --- TreePlugin/lib/TWiki/Plugins/TreePlugin.pm Mon Jan 20 13:01:14 2003 +++ new/TreePlugin/lib/TWiki/Plugins/TreePlugin.pm Thu Jul 3 18:28:11 2003 @@ -1,4 +1,4 @@ -# + # TWiki ($wikiversion has version info) # # Copyright (C) 2002 Slava Kozlov, @@ -21,7 +21,7 @@ # ========================= package TWiki::Plugins::TreePlugin; -#use TWiki::Func; +use TWiki::Func; use TWiki::Plugins::TreePlugin::TWikiNode; use TWiki::Plugins::TreePlugin::ListNodeFormatter; @@ -38,7 +38,7 @@ $VERSION = '0.310'; -$RootLabel = "_"; # what we use to label the root of a tree if not a topic +$RootLabel = "_RootLabel_"; # what we use to label the root of a tree if not a topic $cgi = &TWiki::Func::getCgiQuery(); @@ -130,6 +130,15 @@ # 2) if two topics with identical names in different webs AND # both have a TREEVIEW tag -> the second will be excluded + + +$AGdebugmsg = "
AG debug message
"; + +# bugs re recursion: +# 1) doesn't remember webs so: recursion across webs is problematic +# 2) if two topics with identical names in different webs AND +# both have a TREEVIEW tag -> the second will be excluded + sub handleTreeView { my ($topic, $web, $attributes) = @_; @@ -150,7 +159,7 @@ $TreeTopics{$attrTopic} = 1; my $attrHeader = TWiki::Func::extractNameValuePair( $attributes, "header" ) || ""; - $attrHeader .= "\n" if ($attrHeader); # to enable |-tables foramtting + $attrHeader .= "\n" if ($attrHeader); # to enable |-tables formatting my $attrFormat = TWiki::Func::extractNameValuePair( $attributes, "format" ) || ""; $attrFormat .= "\n" if ($attrFormat); # to enable |-tables formatting my $attrFormatBranch = TWiki::Func::extractNameValuePair( $attributes, "formatbranch" ) || ""; @@ -206,6 +215,7 @@ $node->data("text", $text); $node->data("meta", $meta); } + $node->data("parent", $parent); $parent->add_child($node); # hook me up } @@ -214,12 +224,96 @@ $root->name(" "); # change root's name so it don't show up, hack # format the tree & parse TWiki tags and rendering - return TWiki::Func::expandCommonVariables( - $attrHeader.$nodes{$attrTopic}->toHTMLFormat($formatter), - $attrTopic, - $attrWeb); + if( $attrTopic ne $RootLabel ) { + return "Tree for specific topic $attrTopic\n". + TWiki::Func::expandCommonVariables + ( + $attrHeader.$nodes{$attrTopic}->toHTMLFormat($formatter), + $attrTopic, + $attrWeb); + } + else { + my $ret = ""; + #debug $ret = "Keys of topics in node list\n\n"; + my %rootnodes = %{_findRootsBreakingCycles( \%nodes )}; + foreach my $i ( sort keys( %rootnodes ) ) { + $ret = $ret + #debug . "
Tree for topic $i:\n\n" + . TWiki::Func::expandCommonVariables + ( + $attrHeader.$rootnodes{$i}->toHTMLFormat($formatter), + $attrTopic, + $attrWeb) + ; + } + #$ret = $AGdebugmsg . $ret; + return $ret; + } +} + +sub _findRootsBreakingCycles { + my ($hashMappingNamesToNodes) = @_; + my %roots = (); + + $AGdebugmsg = ""; + foreach my $i ( sort keys( %$hashMappingNamesToNodes ) ) { + my $ultimateParentNode = _findUltimateParentBreakingCycles( ${$hashMappingNamesToNodes}{$i} ); + $roots{$ultimateParentNode->name()} = $ultimateParentNode; + } + + return \%roots; } +sub _findUltimateParentBreakingCycles { + my $orignode = shift; + my $node = $orignode; + my %alreadyvisited = (); + while( $parent = _findParent( $node ) ) { + # break cycles + if( $alreadyvisited{$parent->name()} ) { + $AGdebugmsg = $AGdebugmsg . "pre-rm:" . $parent->toStringNonRecursive() . "
\n"; + $parent->remove_child( $node ); + $AGdebugmsg = $AGdebugmsg . "post-rm:" . $parent->toStringNonRecursive() . "
\n"; + $AGdebugmsg = + $AGdebugmsg + . $parent->name() ."<-". $node->name() ." \n
\n"; + my $cycleroot = TWiki::Plugins::TreePlugin::TWikiNode->new($parent->name() . " cycle..."); + my $cycleleaf = TWiki::Plugins::TreePlugin::TWikiNode->new($node->name() . " ...cycle"); + $node->data("parent",$cycleroot); + $cycleroot->add_child($node); + $parent->add_child($cycleleaf); + # TBD: give some indication of cycle broken + return $cycleroot; + } + else { + $alreadyvisited{$parent->name()} = 1; + } + # move up + $node = $parent; + } + $AGdebugmsg = + $AGdebugmsg + . "findUltimateParent(" + . $orignode->name() + . ")" + . "=" + . $node->name() + . "
"; + return $node; +} + +sub _findParent { + my $node = shift; + $AGdebugmsg = + $AGdebugmsg + . "findParent(" + . $node->name() + . ")" + . "=" + . ($node->data("parent") ? $node->data("parent")->name() : "no-parent") + . "
"; + return $node->data("parent"); +} # lazy variable init # ned to abstract this at some point @@ -259,14 +353,17 @@ } +# TBD: so far as I can tell, the code below is mis-commented. +# It is not finding a child of a node via the lookup; +# instead, it is finding an entry for the node itself. sub _findTWikiNode { my ($name, $hash) = @_; - my $child = $hash->{$name}; # look for child - if (! $child) { # create if not there - $child = TWiki::Plugins::TreePlugin::TWikiNode->new($name); - $hash->{$name} = $child; + my $node = $hash->{$name}; # look for node + if (! $node) { # create if not there + $node = TWiki::Plugins::TreePlugin::TWikiNode->new($name); + $hash->{$name} = $node; } - return $child; + return $node; } # use cgi var to override given variable ref @@ -275,8 +372,13 @@ my $variable = shift; my $paramname = shift; - my $tmp = $cgi->param( $paramname ); - $$variable = $tmp if( $tmp ); + if( ! $cgi ) { + return; + } + else { + my $tmp = $cgi->param( $paramname ); + $$variable = $tmp if( $tmp ); + } } # allow other classes to see the installation web