Forum .LRN Q&A: Re: Res: .LRN Planner missing function

Collapse
Posted by Dario Roig on
Hi Marco! for solve the problem 3, I have added this code

Thanks for your comments.

Problem 3:
i can't remove the planner view of a community, because it only try to instantiate_and_mount the planner, no matter the flag enable_p is "f", so i get an error when i try to remove the planner view, because the package it's already mounted

--- /u/soft/GROUPWARE/INSTALACION/dotlrn_cvs_head/openacs-4/packages/planner/tcl/planner-procs.tcl 2009-07-27 19:43:38.000000000 +0200
+++ tcl/planner-procs.tcl 2009-08-31 14:36:00.295724795 +0200
@@ -857,8 +857,11 @@
dotlrn_community::add_applet_to_community $community_id dotlrn_learning_content
}
}
+ #DRG
+ if {![apm_package_installed_p "planner"]} {
# Mount the planner package
dotlrn::instantiate_and_mount $community_id planner
+ }
#Insert the community to blocks view and create the first empty block by default
if { [string equal [planner::enabled_p -community_id $community_id] ""] } {
set current_index 0

Collapse
Posted by Marco Rodriguez on
Thanks Dario