[Building Sakai] Site Stats / Realm script ?

Steve Swinsburg steve.swinsburg at gmail.com
Tue Apr 20 18:38:23 PDT 2010


Hi Jon,

Yes, you can use the copyRole web service which will sync up a role's permissions in a site from a role in a different site, eg setup the roles with the correct persons in a !site.template and use that as your template to sync from. You could then script this to run over a list of sites.

The web service is in 2.7, but also here:
http://confluence.sakaiproject.org/display/~steve.swinsburg/Additional+web+services+for+Sakai

And you can use the sync-roles Perl script here:
https://source.sakaiproject.org/contrib//lancaster.ac.uk/webservice-scripts/sync-roles-in-sites.pl

cheers,
Steve


On 21/04/2010, at 5:52 AM, Jon Wheat wrote:

> I had added the SiteStats package when we had Sakai at 2.5.x
>  
> We upgraded to 2.6 in December, and apparently no one used stats, because it was just brought to our attention now that it wasn't there.
>  
> I downloaded, overwrote what was there, figuring it was for 2.5, deployed it, and it works great in a site as admin.
> If I'm an Instructor, the link does not display on the left.  I can, as Instructor, go to Edit Tools and see its checked, go to Page Order and move it around, but it doesn't display on the nav.
>  
> So I went into the actual realm for the site itself and had to add the sitestats.view to the instructor - and it worked.
>  
> So ... is there a soap call / script I can spin through to do this ?  or a quick SQL to run ?
> I did notice this in the instructions "Repeat for the realms of existing sites or use a script for the effect"
>  
> -Jon
>  
> _______________________________________________
> 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"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100421/6c4ef395/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3689 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100421/6c4ef395/attachment.bin 


More information about the sakai-dev mailing list