[LON-CAPA-cvs] cvs: loncom /automation Autocreate.pl
raeburn
raeburn@source.lon-capa.org
Sun, 06 Mar 2011 21:44:14 -0000
raeburn Sun Mar 6 21:44:14 2011 EDT
Modified files:
/loncom/automation Autocreate.pl
Log:
- Bug 6287.
- DC user (from xmldc item in autocreate setting in domain config) is the
sender of a message to requestor when pending official course request is
processed by Autocreate.pl
Index: loncom/automation/Autocreate.pl
diff -u loncom/automation/Autocreate.pl:1.17 loncom/automation/Autocreate.pl:1.18
--- loncom/automation/Autocreate.pl:1.17 Sun Mar 6 21:17:23 2011
+++ loncom/automation/Autocreate.pl Sun Mar 6 21:44:14 2011
@@ -2,7 +2,7 @@
#
# Automated Course Creation script
#
-# $Id: Autocreate.pl,v 1.17 2011/03/06 21:17:23 raeburn Exp $
+# $Id: Autocreate.pl,v 1.18 2011/03/06 21:44:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -132,9 +132,12 @@
my $settings;
if (ref($domconfig{'autocreate'}) eq 'HASH') {
$settings = $domconfig{'autocreate'};
+ my ($dcname,$dcdom);
+ if ($settings->{'xmldc'}) {
+ ($dcname,$dcdom) = split(':',$settings->{'xmldc'});
+ }
if ($settings->{'xml'}) {
if ($settings->{'xmldc'}) {
- my ($dcname,$dcdom) = split(':',$settings->{'xmldc'});
if (!&check_activedc($dcdom,$dcname,$dom)) {
print $fh "Autocreate.pl in domain $dom configured to run under the auspices of a user without an active domain coordinator role in the domain - course creation will be skipped.\n\n";
next;