Forum .LRN Q&A: Mounting the Homework Portlet

Collapse
Posted by Bruce Spear on
I'm ready to use the Homework Portlet, did not find it set up in the site-map, but found the homework package had been installed in my application files, then found an entry in the package manager, mounted it in the site-map page ... but that's as far as I have gotten (other than searching the forum for relevant postings for installation instructions and finding Oliver's bug report).  Did I do right so far?  Where do I go from here?  I promise, after this week, to study tcl and OpenACS in more detail, but for the moment I'd appreciate any help setting this up as my users are champing at the bit.  Thanks!  Bruce
Collapse
Posted by Janine Ohmer on
If you go to the control panel for the class where you want the homework portlet to appear, and click on Manage Applets, you should see a link to add the homework portlet.

The list of default class applets is a package parameter and in theory you can add dotlrn_homework to that list and have it be automatically enabled on every new class you create.  However, someone else will have to tell you exactly how and where to do this on a package like dotLRN that is mounted multiple times.  I have had trouble getting this to work in the past so now when I need to change a package parameter globally I do it in sqlplus, not a process I should be recommending to anyone else. :)

Collapse
Posted by Janine Ohmer on
Oh yea, I should have mentioned that you don't want to mount it by hand;  if you find that the link I mentioned isn't there, try unmounting it and restarting the site.
Collapse
Posted by Eduardo Pérez on
dotlrn-homework doesn't seem to be an OpenACS application although is marked as such.
Should this patch be applied?
--- dotlrn-homework/dotlrn-homework.info~
+++ dotlrn-homework/dotlrn-homework.info
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- Generated by the OpenACS Package Manager -->

-<package key="dotlrn-homework" url="https://openacs.org/repository/apm/packages/dotlrn-homework" type="apm_application">
+<package key="dotlrn-homework" url="https://openacs.org/repository/apm/packages/dotlrn-homework" type="apm_service">
    <package-name>dotLRN Homework</package-name>
    <pretty-plural>dotLRN Homework</pretty-plural>
    <initial-install-p>f</initial-install-p>

What version of OpenACS and dotLRN are you using?

I have OpenACS CVS HEAD with dotLRN CVS head working.

I have dotlrn-homework working but I found the bug:
https://openacs.org/bugtracker/openacs/bug?bug_number=1030
I don't know where's the problem, so I can't fix it.
I have a workaround (just for testing the package):
--- dotlrn-homework/www/master.tcl~
+++ dotlrn-homework/www/master.tcl
@@ -1 +1 @@
-set context_bar [eval ad_context_bar -node_id [site_node::get_parent_id -node_id [ad_conn node_id]] $context_bar]
+set context_bar [eval ad_context_bar -node_id [site_node::get_parent_id -node_id [ad_conn node_id]] ""]

If you are using CVS versions like me:
I had to source the files in:
http://cvs.openacs.org/cvs/dotlrn-homework/sql/postgresql/Attic/?root=dotlrn
Why did someone delete them if they are needed for dotlrn-homework to work?

Collapse
Posted by Bruce Spear on
Janine!  Thanks a million!  You are right, I could not mount it by hand, so to speak, from the site-map, though I think I learned something about this process from trying.  I was indeed able to find it in the Manage Applets list of the Group Administration, mount it from there, and now see it on the course page!  Wonderful!  Many thanks (one millions, at least).  Bruce