[LON-CAPA-admin] No Cloning for ...
Stuart Raeburn
raeburn at msu.edu
Fri Aug 13 12:54:56 EDT 2010
Hi,
There are two solutions:
1. Change the line in /etc/cron.d/loncapa from
0,15,30,45 * * * * www /home/httpd/perl/Autocreate.pl fsu fsudc:fsu
to:
0,15,30,45 * * * * www /home/httpd/perl/Autocreate.pl
and then as DC use:
Main Menu -> Set domain configuration -> Display (with "Auto-course
creation settings" checked).
and set: "Create pending official courses from XML files" to: Yes
and for: "XML files processed as: (choose Dom. Coord.)", check the
fsudc:fsu user.
click: "save".
The course XML files created by your external web form will then be
processed with the correct permissions.
_OR_
2. Replace Autocreate.pl rev 1.13 (shipped with 2.9.0) with rev 1.14.
All on one line:
wget -O /home/httpd/perl/Autocreate.pl
'http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/automation/Autocreate.pl?rev=1.14;content-type=text/plain'
and leave the entry in /etc/cron.d/loncapa unchanged as:
0,15,30,45 * * * * www /home/httpd/perl/Autocreate.pl fsu fsudc:fsu
with no need to set anything in the domain configuration.
The course XML files created by your external web form will then be
processed with the correct permissions when using the legacy method of
calling Autocreate.pl in cron.
*****
For the longer term, customization of localenroll.pm to allow LON-CAPA
to handle automated creation of course requests in your domain (with
courses requested within LON-CAPA using the functionality added in
2.9), coupled with retirement of the standalone web form could
eliminate the up to 15 minute delay in your current mechanism, as the
new functionality can support immediate course creation for validated
instructors of record (as is done at MSU).
Stuart Raeburn
Quoting hkng <hkng at fsu.edu>:
> The change in course creation is really messing things up. A user requests a
> course via a separate course request form (which writes an xml file) and
> when it is processed by Autocreate.pl the following message appears.
>
> ********************
> Fri Aug 13 11:15:02 2010 Autocreation messages start --
> Sending to batch - auto,fsu,fsudc,fsu xuser_fa10PHY3101_1281711629.xml
>
> New LON-CAPA course ID: refused
> Created on: no_host
> Cloning course from fsul1
> <username removed>:fsu) - does not have rights to access enrollment in these
> classes (as determined by the policies of your institution on access
> to official classlists)
> <div class="LC_warning"><username removed>:fsu) - does not have rights to
> access enrollment in these classes (as determined by the policies of your
> institution on access to official classlists)
> <ul>
> - fa10PHY3101001
>
>
> Setting environment: ok
>
> -- Fri Aug 13 11:15:04 2010 Autocreation messages end
>
> Where is the rights for enrollment determined?
>
> On cron.d/loncapa there is the following entry
>
> 0,15,30,45 * * * * www /home/httpd/perl/Autocreate.pl fsu fsudc:fsu
>
> Any quick fix for this? Going to be a problem next week.
>
> Thanks,
> -hk
>
>
>
>
>
>> I am running into the same problem when I tried to create a course in the
>>> fsuK12 domain. Is there any checking when cloning a course using a
>>> separate
>>> course request script? The script writes an xml file - does
>>> autocreate.pl check when trying to create a course?
>>>
>>
>> Although checking for cloning rights is done in that case, in 2.9.0 this
>> mechanism already supports cloning of any course within the domain when a
>> username and domain for a user with an active DC role is either:
>>
>> (a) included as arguments in the call to Autocreate.pl, i.e.,
>>
>> ./Autocreate.pl <coursedomain username:domain>
>>
>> or if no arguments are included,
>>
>> (b) are defined in the Domain Configuration for the domain of the course:
>>
>> Set domain configuration -> Auto-course creation settings -> XML files
>> processed as: (choose Dom. Coord.)
>>
>>
>> Hence applying the diffs from 6/25 noted above will not solve the issue you
>> encountered. This must have a different cause.
>>
>> Stuart Raeburn
>>
>>
>>
>> Quoting hkng <hkng at fsu.edu>:
>>
>> Thanks Stuart, however when I do
>>>
>>> wget -O lond '
>>>
>>> http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/lond?rev=1.445;content-type=text/plain<http://source.loncapa.org/cgi-bin/cvsweb.cgi/%7Echeckout%7E/loncom/lond?rev=1.445;content-type=text/plain>
>>> '
>>>
>>> wget -O lonnet.pm '
>>>
>>> http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/lonnet/perl/lonnet.pm?rev=1.1071;content-type=text/plain<http://source.loncapa.org/cgi-bin/cvsweb.cgi/%7Echeckout%7E/loncom/lonnet/perl/lonnet.pm?rev=1.1071;content-type=text/plain>
>>> '
>>>
>>> HTTP request sent, awaiting response... 403 Forbidden
>>> 2010-07-28 08:55:28 ERROR 403: Forbidden.
>>>
>>> But
>>> wget -O lonpickcourse.pm '
>>>
>>> http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/interface/lonpickcourse.pm?rev=1.98;content-type=text/plain<http://source.loncapa.org/cgi-bin/cvsweb.cgi/%7Echeckout%7E/loncom/interface/lonpickcourse.pm?rev=1.98;content-type=text/plain>
>>> '
>>>
>>> works.
>>>
>>> Can't spot where the typo is? Any ideas?
>>>
>>> -hk
>>>
>>>
>>> On Wed, Jul 28, 2010 at 8:45 AM, Mark Lucas <lucasm at ohio.edu> wrote:
>>>
>>> Thanks! Will this be in the new release?
>>>>
>>>> Mark
>>>>
>>>> On Jul 28, 2010, at 8:23 AM, Stuart Raeburn wrote:
>>>>
>>>> Mark,
>>>>
>>>> Changes in lond (rev 1.445), lonpickcourse.pm (rev 1.98) and
>>>> lonnet.pm(rev
>>>> 1.1071) -- from June 25:
>>>>
>>>> (see
>>>>
>>>>
>>>> http://mail.lon-capa.org/pipermail/lon-capa-cvs/Week-of-Mon-20100621/021011.html
>>>> for details),
>>>>
>>>> allow a DC to override cloning rights for an existing course (in the same
>>>> domain) when a DC creates a single course on behalf of the owner of the
>>>> new
>>>> course via "Create a single course".
>>>>
>>>> The Domain Coordinator can specify cloning of any course in the domain
>>>> when
>>>> creating a new course regardless of who will own the new course, and
>>>> whether
>>>> they owned the existing course, had an active CC role in the existing
>>>> course, or otherwise had rights to clone it.
>>>>
>>>> Stuart Raeburn
>>>>
>>>>
>>>> Quoting Mark Lucas <lucasm at ohio.edu>:
>>>>
>>>>
>>>> On Jun 24, 2010, at 12:18 PM, Stuart Raeburn wrote:
>>>>
>>>>
>>>> The aim with 2.9 has actually been to reduce the administrative tasks
>>>> which a Domain Coordinator must perform, by devolving responsibility for
>>>> course creation to the faculty who will be teaching the course.
>>>>
>>>>
>>>> In the future, this trend will continue by making cloning more granular,
>>>> and also making cloning something that a Course Coordinator can do
>>>> directly
>>>> into a course that has already been created (see:
>>>> http://bugs.loncapa.org/show_bug.cgi?id=6039)
>>>>
>>>>
>>>>
>>>> With respect, this is a royal pain in the butt for a smaller
>>>> installation
>>>> (though still somewhat big) like mine,
>>>>
>>>> where it is more desirable for me to take care of the cloning and
>>>> creation
>>>> of courses than to have other
>>>>
>>>> people creating courses and screwing up.
>>>>
>>>>
>>>> At this point instead of just creating the course, I have to find each
>>>> course that I want to clone, enter it, add the
>>>>
>>>> new owner, then go create the course. I realize this doesn't seem like
>>>> much, but it roughly doubles or more the
>>>>
>>>> time it takes for me to set up courses for a quarter.
>>>>
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Mark Lucas email: lucasm at ohiou.edu
>>>>
>>>> 252D Clippinger Lab phone: (740)597-2984
>>>>
>>>> Department of Physics and Astronomy fax: (740)593-0433
>>>>
>>>> Ohio University
>>>>
>>>> Athens, OH 45701
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> LON-CAPA-admin mailing list
>>>> LON-CAPA-admin at mail.lon-capa.org
>>>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>>>>
>>>>
>>
>>
>> _______________________________________________
>> LON-CAPA-admin mailing list
>> LON-CAPA-admin at mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>>
>
Stuart Raeburn, Ph.D. 517-432-5652
Div. Science & Mathematics Education raeburn at msu.edu
Michigan State University
MI 48824 USA
More information about the LON-CAPA-admin
mailing list