[Building Sakai] How to register a new function and make it effective?

Adrian Fish a.fish at lancaster.ac.uk
Fri Jun 17 01:43:37 PDT 2011


You have to create a new site to pick up the role data from the template 
realm. The template  is  only used on site creation, current sites will 
not pick up the new settings.

Try creating a new site and see if that works.

Cheers,
Adrian.

On 17/06/2011 09:28, Shun Zhang wrote:
> I'm now developing an app based on sakai 2.8.0. I want to make my tool
> hidden to student and visiable to teacher, so I do the following
> steps, but it doesn't work:
>
> 1. register new fuctions in registration xml (I don't want to use the
> existed "content.new" function).
> <registration>
>      <tool id="aid201105.questionpool" title="Question Pool" description="">
>          <category name="course" />
>          <configuration name="functions.require"
> value="aid201105.questionpool.new" />
>      </tool>
>      <function name="aid201105.questionpool.new" />
>      <function name="aid201105.questionpool.read" />
>      <function name="aid201105.questionpool.revise" />
>      <function name="aid201105.questionpool.delete" />
> </registration>
>
> 2. authorize
>
> Admin's workspace -->  Reams -->  Edit: Realm !site.template.course -->
> Set the Functions for Role "Instructor" -->  check
> "aid201105.questionpool.new"
>
> 3. then I login and enter a course site as an instructor, but I can
> not see "Question Pool" tool on the left hand menu.
>
>     And securityService.unlock(userId, "aid201105.questionpool.new",
> siteService.siteReference(siteId)) returns false.
>
>
> I'm confused now.
>
> Thanks!
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home



More information about the sakai-dev mailing list