From af9fc4a390749c55502741af29606b8f38713959 Mon Sep 17 00:00:00 2001 From: Wouter van Oijen Date: Sun, 21 May 2006 10:49:00 +0000 Subject: [PATCH] fixing typos --- lib/Spectre/Cron.pm | 4 ++-- lib/WebGUI/Asset.pm | 6 +++--- lib/WebGUI/Workflow/Spectre.pm | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/Spectre/Cron.pm b/lib/Spectre/Cron.pm index d25c8f151..203cec37a 100644 --- a/lib/Spectre/Cron.pm +++ b/lib/Spectre/Cron.pm @@ -372,7 +372,7 @@ sub runJob { $self->debug("Preparing to run a scheduled job ".$job->{taskId}."."); POE::Component::Client::UserAgent->new; if ($job->{sitename} eq "" || $job->{config} eq "" || $job->{taskId} eq "") { - $self->error("Warning: A scheduled task has corrupt information and is nat able to be run. Skipping execution."); + $self->error("Warning: A scheduled task has corrupt information and is not able to be run. Skipping execution."); $kernel->yield("deleteJob",{config=>$job->{config}, taskId=>$job->{taskId}}) if ($job->{config} ne "" && $job->{taskId} ne ""); } else { my $url = "http://".$job->{sitename}.':'.$self->config->get("webguiPort").$job->{gateway}; @@ -422,7 +422,7 @@ sub runJobResponse { $self->debug("Got an error response for scheduled task $config / $taskId, will try again in ".$self->config->get("suspensionDelay")." seconds."); $kernel->delay_set("runJob",$self->config->get("suspensionDelay"),$job); } else { - $self->error("Something bad happened on the return of scheduled task $config / $taskId, will try again in ".$self->config->get("suspensionDelay").". ".$response->error_as_HTML); + $self->error("Something bad happened on the return of scheduled task $config / $taskId, will try again in ".$self->config->get("suspensionDelay")." seconds. ".$response->error_as_HTML); $kernel->delay_set("runJob",$self->config->get("suspensionDelay"),$job); } } elsif ($response->is_redirect) { diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 82cfc2a44..4c6f49b25 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -354,7 +354,7 @@ sub get { #------------------------------------------------------------------- -=head2 getAdminConsole () +=head2 getAdminConsole ( ) Returns a reference to a WebGUI::AdminConsole object. @@ -401,7 +401,7 @@ sub getAssetAdderLinks { #use Data::Dumper; print Dumper($newAsset); my $uiLevel = eval{$newAsset->getUiLevel()}; if ($@) { - $self->session->errorHandler->error("Couldn't get UI level of ".$class."because ".$@); + $self->session->errorHandler->error("Couldn't get UI level of ".$class.". Root cause: ".$@); next; } else { next if ($uiLevel > $self->session->user->profileField("uiLevel") && !$self->session->user->isInGroup(3)); @@ -463,7 +463,7 @@ sub getAssetAdderLinks { #------------------------------------------------------------------- -=head2 getContainer () +=head2 getContainer ( ) Returns a reference to the container asset. If this asset is a container it returns a reference to itself. If this asset is not attached to a container it returns its parent. diff --git a/lib/WebGUI/Workflow/Spectre.pm b/lib/WebGUI/Workflow/Spectre.pm index bb847a0a6..1a38961b7 100644 --- a/lib/WebGUI/Workflow/Spectre.pm +++ b/lib/WebGUI/Workflow/Spectre.pm @@ -56,10 +56,6 @@ sub DESTROY { Sends a message to Spectre. -=head3 session - -A reference to the current session. - =head3 module The module/method pair you wish to communicate with in Spectre.