Skip to content

Commit

Permalink
Item10044: include topic for acacia character dataset
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/PhyloWidgetPlugin@11767 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
TemiVarghese authored and TemiVarghese committed May 26, 2011
1 parent 98d41ea commit fe773bf
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions lib/Foswiki/Plugins/PhyloWidgetPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ sub processClade{
# $request = $clade;

} else {
$request="\n---+++ $section\n%STARTSECTION{\"$section\"}%%INCLUDE{\"%PUBURL%/%WEB%/%TOPIC%/selection.txt\"}%%ENDSECTION{\"$section\"}%";
$request="\n---+++ $section\n%STARTSECTION{\"$section\"}%%INCLUDE{\"%BASEWEB%.CharacterGridView\"}%%INCLUDE{\"%PUBURL%/%WEB%/%TOPIC%/selection.txt\"}%%ENDSECTION{\"$section\"}%";
}
if($debug){
$dinfo = $dinfo. 'created text\n';
Expand All @@ -415,7 +415,7 @@ sub processClade{

# save attachment in the new topic
my $attach = tempFileName();
try{
#try{
my $fh;
# create temp file
open $fh,'>'.$attach;
Expand All @@ -433,9 +433,9 @@ sub processClade{
filedate=>$date,
});
unlink $attach if ($attach && -e $attach);
}
otherwise{
};
# }
# otherwise{
# };
# $includeText ="%INCLUDE{\"$web.$newtopicname\"}%";
# $updatetopic->text($text);

Expand Down Expand Up @@ -473,12 +473,12 @@ sub processClade{

#save the file as attachment
my @stats = stat $filename;
my $fileSize = $stats[7];
my $fileDate = $stats[9];
my $fileSize = @stats[7];
my $fileDate = @stats[9];
if($debug){
$dinfo = $dinfo. 'got info of file\n';
}
try {
# try {
Foswiki::Func::saveAttachment($web,$newtopicname,"nexml.xml",
{
file => $filename,
Expand All @@ -493,22 +493,22 @@ sub processClade{
if($debug){
$dinfo = $dinfo. 'deleted temp topic\n';
}
} catch Foswiki::AccessControlException with {
# } catch Foswiki::AccessControlException with {
# Topic CHANGE access denied
if($debug){
$dinfo = $dinfo. 'in access control exp\n';
}
} catch Error::Simple with {
# see documentation on Error
if($debug){
$dinfo = $dinfo. 'in simple error\n';
}
}
otherwise {
if($debug){
$dinfo = $dinfo. 'in otherwise\n';
}
}
# if($debug){
# $dinfo = $dinfo. 'in access control exp\n';
# }
# } catch Error::Simple with {
# # see documentation on Error
# if($debug){
# $dinfo = $dinfo. 'in simple error\n';
# }
# }
# otherwise {
# if($debug){
# $dinfo = $dinfo. 'in otherwise\n';
# }
# }
}

# Foswiki::Func::saveTopic("Main","testing", $meta,$text,{ forcenewrevision => 1 });
Expand Down

0 comments on commit fe773bf

Please sign in to comment.