Index: openacs-4/packages/curriculum/tcl/misc-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/tcl/misc-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/curriculum/tcl/misc-procs.tcl 6 Jun 2003 13:57:30 -0000 1.3 +++ openacs-4/packages/curriculum/tcl/misc-procs.tcl 10 Jun 2003 09:29:49 -0000 1.4 @@ -184,7 +184,7 @@ ad_return_error "Could not get child package_id" \ "This could be because you have mounted more than one instance of the Curriculum package in a subsite. Curriculum was designed to only -mount one instance per acs-subsite. It could also be a bug in the code. +be mounted once per acs-subsite. Please visit the Site-Map and unmount the extra instance. However, it could also be a bug in the code.
Here is what the database said:
@@ -376,6 +376,7 @@
ad_proc -public curriculum::elements_flush {
+ {-thorough:boolean 0}
{-package_id ""}
{-user_id ""}
} {
@@ -386,6 +387,12 @@
set package_id [conn package_id]
}
+ if { $thorough_p } {
+ # Flush the cache for all users (including non-logged in) in this package_id.
+ util_memoize_flush_regexp [list curriculum::enabled_elements -package_id $package_id]
+ return
+ }
+
if { [empty_string_p $user_id] } {
set user_id [ad_conn user_id]
}
@@ -485,7 +492,7 @@
set this_curriculum $info(curriculum_id)
foreach element_id $element_ids {
- lappend manipulated_rows [concat $info_row($element_id) checked_p $checked_p($element_id) external_p $external_p($element_id) completed_p $completed_p]
+ lappend manipulated_rows [concat $info_row($element_id) checked_p $checked_p($element_id) completed_p $completed_p]
}
# Empty the list.
@@ -506,19 +513,11 @@
set completed_p 0
}
- # FIXME. Should be performed by the db!
- # Check for external URLs.
- if { [string equal -length 7 "http://" $info(url)] } {
- set external_p(${info(element_id)}) 1
- } else {
- set external_p(${info(element_id)}) 0
- }
-
}
# Play the recording for the last curriculum.
foreach element_id $element_ids {
- lappend manipulated_rows [concat $info_row($element_id) checked_p $checked_p($element_id) external_p $external_p($element_id) completed_p $completed_p]
+ lappend manipulated_rows [concat $info_row($element_id) checked_p $checked_p($element_id) completed_p $completed_p]
}
# Let's turn this list into a multirow datasource in the