Up to [LON-CAPA] / loncom / interface
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: version_2_6_0
Bug 5191. Decouple storage of last access time for a course in nohist_courseids.db from storage of course information. - Retain backwards compatibility with legacy lonnet::courseiddump() Other general change: uniform use of 'inst_code' as key in frozen hash instead of 'instcode'. lond &put_course_id_handler() - last access stored in escaped lasttime:courseid key = value hash item if legacy lonnet::courseiddump() updates courseinfo. &put_course_id_hash_handler() - additional argument - $mode ('timeonly', 'notime' or 'all') - determines whether last access, or courseinfo (description,inst_code,owner,type) or both are stored &dump_course_id_handler() - documentation updated - style (replacing unless) - change location of unescaping when checking filters so double escaping no longer needed for courseinfo stored in frozen hash - return courseinfo in hash form, if requested as hash, when record has yet to be converted to a frozen hash &validate_class_access_handler() - eliminate extra unescaping of $ownerlist lonnet.pm &flushcourselogs() includes 'timeonly' argument in call to courseidput(). &courseidput() - if in 'timeonly' mode only courseids are sent to lond in courseidputhash call. &createcourse() - courseinfo values in hash no longer escaped (freeze_hash handles this) - call to flushcourselogs() replaced by call to courseidput() lonmodifycourse.pm - courseinfo values in hash no longer escaped - call to courseidput() includes 'notime' as fourth arg. coursecatalog.pm - remove unneeded code, since entry for each course in %courses hash will now be a hash ref. courseclassifier.pm - remove unneeded code, since entry for each course in %courses hash will now be a hash ref. lonpickcourse.pm - Entry for each course in %courses hash should be a hash ref, when constructing for onlyown courses case. - instcode to inst_code - no need to unescape courseinfo value (thaw_hash in lonnet::courseiddump does it) lonparmset.pm - call to flushcourselogs() replaced by call to courseidput() after updating course description. - appenv user's session with new course description.