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

Sam Chow samchow at ln.edu.hk
Mon Jun 20 01:38:32 PDT 2011


Dear J-F

Many Thanks!

Cheers
Sam


Jean-Francois Leveque-2 wrote:
> 
> You sure can!
> 
> Admin Site Role Permissions updater
> 
> Can be found in:
> https://source.sakaiproject.org/contrib/caret/admin-site-perms/trunk/
> 
> Cheers
> J-F
> 
> On 20/06/2011 08:22, Sam Chow wrote:
>>
>> oops!
>>
>> It is a great tool! But i cant find it, may i ask whats that name is it?
>>
>>
>> Steve Swinsburg-3 wrote:
>>>
>>> There is also a tool in contrib which will backfill the permissions for
>>> you, written by Aaron. Select the sites and it does it's thing.
>>>
>>> Cheers
>>> Steve
>>>
>>> Sent from my iPhone
>>>
>>> On 17/06/2011, at 2:25, "Diego del Blanco Orobitg"
>>> <diego.delblanco at samoo.es>  wrote:
>>>
>>>> Maybe it's not the problem and you have done this fine but.. but if you
>>>> change the !site.template.course, you only change the template, but all
>>>> the
>>>> old sites created before that moment doesn't update their realms. So it
>>>> only
>>>> will work on new sites and if you enter in a previously created site,
>>>> the
>>>> role won't change.
>>>>
>>>> You must change in all the sites you want the
>>>> aid201105.questionpool.new
>>>> permissions (manually or with a webservice...)
>>>>
>>>> If you don't want, you can update the site helper realm.
>>>>
>>>> As said, I'm not sure that's the problem but the xml seems fine.
>>>>
>>>> Diego del Blanco Orobitg
>>>> Director de operaciones
>>>> diego.delblanco at samoo.es
>>>> Tlf: 963 936 915 - 653 683 489
>>>> www.samoo.es
>>>>
>>>>
>>>>
>>>> -----Mensaje original-----
>>>> De: shun.zhang at aispeech.com [mailto:shun.zhang at aispeech.com] En nombre
>>>> de
>>>> Shun Zhang
>>>> Enviado el: viernes, 17 de junio de 2011 10:28
>>>> Para: sakai-dev at collab.sakaiproject.org
>>>> CC: diego.delblanco at samoo.es
>>>> Asunto: How to register a new function and make it effective?
>>>>
>>>> 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!
>>>> -----
>>>> No se encontraron virus en este mensaje.
>>>> Comprobado por AVG - www.avg.com
>>>> Versión: 10.0.1382 / Base de datos de virus: 1513/3708 - Fecha de
>>>> publicación: 06/16/11
>>>>
>>>> _______________________________________________
>>>> 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"
>>> _______________________________________________
>>> 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"
>>>
>>
>>
>> -----
>> Best Regards,
>>
>> Sam Chow
>> Research Assistant
>> Lingnan Unviersity
>> Hong Kong
> _______________________________________________
> 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"
> 


-----
Best Regards,

Sam Chow
Research Assistant
Lingnan Unviersity
Hong Kong
-- 
View this message in context: http://old.nabble.com/-Building-Sakai--How-to-register-a-new-function-and-make-it-effective--tp31867201p31883756.html
Sent from the Sakai - Development mailing list archive at Nabble.com.



More information about the sakai-dev mailing list