[Deploying Sakai] still having Lessonbuilder import problems

Anders Nordkvist anders.nordqvist at his.se
Thu Nov 10 01:05:33 PST 2011


Im trying to get the import from a site with lessonbuilder to another site to work!
For this to work I had to insert code from three different jiras as you can see below. Im running sakai 2.7.x and trying to import lessonbuilder tool from one course site to another.

I have inserted the code from the three diff files (19686, siteaction.diff, and siteaction2.diff) and (18616, siteaction).
Whern I first try I´t wont build, the code halts with error:

[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/sakai/sakai-2.7.x/site-manage/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java:[2410,32] orderToolIds(org.sakaiproject.event.api.SessionState,java.lang.String,java.util.List) in org.sakaiproject.site.tool.SiteAction cannot be applied to (org.sakaiproject.event.api.SessionState,java.lang.String,java.util.List<java.lang.String>,boolean)

When I then remove the "false" from siteaction2 in 18616:

                        context.put("selectedTools", orderToolIds(state, site_type,
-                                       (List) state.getAttribute(STATE_TOOL_REGISTRATION_SELECTED_LIST), false)); // String toolId's
+                                                                 originalToolIds((List<String>) state.getAttribute(STATE_TOOL_REGISTRATION_SELECTED_LIST), state), false));
                        context.put("importSites", state.getAttribute(STATE_IMPORT_SITES));
                        context.put("importSitesTools", state

It build with success!

Im not really sure what to make of it. Im not so good at java programming :(
What do you think?

Best regards
Anders nordqvist
System administrator
University college of Skövde

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20111110/ebdc19da/attachment.html 

More information about the production mailing list