fixed a few bugs

This commit is contained in:
JT Smith 2006-04-26 22:06:05 +00:00
parent 48c631bf5a
commit 521162c577
4 changed files with 12 additions and 18 deletions

View file

@ -300,7 +300,7 @@ sub addNewStyles {
},"7.0-style".sprintf("%013d",$assetCounter)); },"7.0-style".sprintf("%013d",$assetCounter));
$asset->getStorageLocation->addFileFromFilesystem("7fixup/".$style."/".$file); $asset->getStorageLocation->addFileFromFilesystem("7fixup/".$style."/".$file);
$asset->getStorageLocation->generateThumbnail($file); $asset->getStorageLocation->generateThumbnail($file);
} elsif ($file =~ m/.tmpl$/) { } elsif ($file =~ m/\.tmpl$/) {
open(FILE,"<7fixup/".$style."/".$file); open(FILE,"<7fixup/".$style."/".$file);
my $first = 1; my $first = 1;
my $head = 0; my $head = 0;
@ -323,23 +323,17 @@ sub addNewStyles {
} }
close(FILE); close(FILE);
my $template = $folder->addChild(\%properties, $properties{id}); my $template = $folder->addChild(\%properties, $properties{id});
} elsif ($file =~ m/.nav$/) { } elsif ($file =~ m/\.nav$/) {
open(FILE,"<"."7fixup/".$style."/".$file); open(FILE,"<"."7fixup/".$style."/".$file);
my $first = 1;
my $head = 0;
my %properties = (className=>"WebGUI::Asset::Wobject::Navigation", styleTemplateId=>'PBtmpl0000000000000060'); my %properties = (className=>"WebGUI::Asset::Wobject::Navigation", styleTemplateId=>'PBtmpl0000000000000060');
while (my $line = <FILE>) { while (my $line = <FILE>) {
if ($first) { if ($line =~ m/^\#(.*):(.*)$/) {
$line =~ m/^\#(.*)$/;
$properties{id} = $1;
$first = 0;
} elsif ($line =~ m/^\#(.*):(.*)$/) {
$properties{$1} = $2; $properties{$1} = $2;
} }
} }
close(FILE); close(FILE);
my $template = $folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter)); $folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter));
} elsif ($file =~ m/.snippet$/) { } elsif ($file =~ m/\.snippet$/) {
open(FILE,"<7fixup/".$style."/".$file); open(FILE,"<7fixup/".$style."/".$file);
my $head = 0; my $head = 0;
my %properties = (className=>"WebGUI::Asset::Snippet"); my %properties = (className=>"WebGUI::Asset::Snippet");
@ -351,7 +345,7 @@ sub addNewStyles {
} }
} }
close(FILE); close(FILE);
my $template = $folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter)); $folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter));
} }
} }
} }

View file

@ -1,9 +1,9 @@
#title:RootTab Level 0 #title:RootTab Level 0
#menuTitle:RootTab Level 0 #menuTitle:RootTab Level 0
#url:roottab_level0 #url:roottab_level0
#startPointType:relativeToRoot #startType:relativeToRoot
#startPoint:1 #startPoint:1
#relativesToInclude:descendants #assetsToInclude:descendants
#descendantEndPoint:1 #descendantEndPoint:1
#templateId:#stevenav00000000000001 #templateId:#stevenav00000000000001
#displayTitle:0 #displayTitle:0

View file

@ -1,9 +1,9 @@
#title:RootTab Level 1 #title:RootTab Level 1
#menuTitle:RootTab Level 1 #menuTitle:RootTab Level 1
#url:roottab_level1 #url:roottab_level1
#startPointType:relativeToRoot #startType:relativeToRoot
#startPoint:2 #startPoint:2
#relativesToInclude:descendants #assetsToInclude:descendants
#descendantEndPoint:1 #descendantEndPoint:1
#templateId:PBnav000000style01lvl2 #templateId:PBnav000000style01lvl2
#displayTitle:0 #displayTitle:0

View file

@ -1,9 +1,9 @@
#title:Style3 Coolmenu #title:Style3 Coolmenu
#menuTitle:Style3 Coolmenu #menuTitle:Style3 Coolmenu
#url:style3_coolmenu #url:style3_coolmenu
#startPointType:relativeToRoot #startType:relativeToRoot
#startPoint:1 #startPoint:1
#relativesToInclude:descendants #assetsToInclude:descendants
#descendantEndPoint:55 #descendantEndPoint:55
#displayTitle:0 #displayTitle:0
#ancestorEndPoint:55 #ancestorEndPoint:55