fix - Unable to add EventsCalendar

This commit is contained in:
Roy Johnson 2006-12-10 22:59:16 +00:00
parent 2d69f47e99
commit 7d0cbe62ca
2 changed files with 11 additions and 6 deletions

View file

@ -11,6 +11,8 @@
This is probably only a real problem in persistent code, like Workflow
Activities and tests.
Added tests for File and Image assets to verify that this happens correctly.
- fix - Unable to add EventsCalendar
7.3.0
- NOTICE: The Template Managers group is deprecated. It has not been removed

View file

@ -20,19 +20,22 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
cleanupEventsCalendar($session);
finish($session); # this line required
##-------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
sub cleanupEventsCalendar {
my $session = shift;
print "\tRemoving the rest of the old EventsCalendar wobject\n" unless ($quiet);
unlink("../../lib/WebGUI/Asset/Wobject/EventsCalendar.pm");
unlink("../../lib/WebGUI/i18n/English/Asset_EventsCalendar.pm");
unlink("../../lib/WebGUI/Help/Asset_EventsCalendar.pm");
$session->config->deleteFromArray("assets","WebGUI::Asset::Wobject::EventsCalendar")
}
# ---- DO NOT EDIT BELOW THIS LINE ----