Fixing the calendar
This commit is contained in:
parent
1cae999b60
commit
ea83200a34
3 changed files with 27 additions and 8 deletions
|
|
@ -27,6 +27,13 @@ save you many hours of grief.
|
|||
enable password recovery. It is highly advisable to pick several fields,
|
||||
as one field only is very easy to break.
|
||||
|
||||
There is a new Calendar wobject which replaces the current EventsCalendar
|
||||
wobject. The upgrade will migrate all of your events but it will *not*
|
||||
migrate any of your custom templates. All custom event calendar templates
|
||||
will be *_D E L E T E D_* so make sure you have a backup if you need them.
|
||||
Also, the Event List view of the calendar works a little different
|
||||
than it used to.
|
||||
|
||||
7.2.0
|
||||
--------------------------------------------------------------------
|
||||
* NOTE: if you tried to upgrade to 7.2.0 and it failed during the
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ use lib "../../lib";
|
|||
use strict;
|
||||
use Getopt::Long;
|
||||
use WebGUI::Session;
|
||||
|
||||
use WebGUI::Workflow;
|
||||
use WebGUI::International;
|
||||
|
||||
my $toVersion = "7.3.0"; # make this match what version you're going to
|
||||
my $quiet; # this line required
|
||||
|
|
@ -101,6 +102,7 @@ EOT
|
|||
$session->config->addToArray('assets', 'WebGUI::Asset::Wobject::WikiMaster');
|
||||
}
|
||||
|
||||
#-----------------------------------------------------
|
||||
sub makeRSSFromParentAlwaysHidden {
|
||||
my $session = shift;
|
||||
print "\tHiding RSS From Parent assets.\n" unless $quiet;
|
||||
|
|
@ -114,9 +116,10 @@ EOT
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addNewCalendar {
|
||||
my $session = shift;
|
||||
my $session = shift;
|
||||
my $i18n = WebGUI::International->new($session,'Asset_Calendar');
|
||||
print "\tCreating Calendar and Event tables.\n" unless $quiet;
|
||||
|
||||
$session->db->write($_) for (<<'ENDSQL',
|
||||
|
|
@ -193,10 +196,14 @@ ENDSQL
|
|||
push @{$workflows->{None}},"WebGUI::Workflow::Activity::CalendarUpdateFeeds";
|
||||
$session->config->set("workflowActivities",$workflows);
|
||||
|
||||
WebGUI::Workflow::new("pbworkflow000000000004")->addActivity($session,"WebGUI::Workflow::Activity::CalendarUpdateFeeds");
|
||||
# Add the Calendar Update Feeds activity to Hourly Maintenance workflow
|
||||
my $workflow = WebGUI::Workflow->new($session,"pbworkflow000000000004");
|
||||
my $activity = $workflow->addActivity("WebGUI::Workflow::Activity::CalendarUpdateFeeds");
|
||||
$activity->set("title", $i18n->get("workflow updateFeeds"));
|
||||
$activity->set("description", $i18n->get("workflow updateFeeds description"));
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub migrateCalendars {
|
||||
my $session = shift;
|
||||
|
||||
|
|
@ -269,7 +276,7 @@ sub migrateCalendars {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub removeOldCalendar {
|
||||
my $session = shift;
|
||||
print "\tRemoving old EventsCalendar tables, templates, .\n" unless $quiet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue