Forum .LRN Q&A: Re: Mounting the Homework Portlet

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?