|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[Building Sakai] WebServices copyRole()Hey Steve & Community,
I ported your Perl sync-roles-in-sites.pl script (https://source.sakaiproject.org/contrib//swinsburg/webservice-scripts/sync- roles-in-sites.pl) to a Python3 script for use here at Western University. For reference, you can find it @ https://source.sakaiproject.org/svn/msub/uwo.ca/scripts/webservice-scripts/s yncRolesInSitesSOAP.py My real question lies with the copyRoles() function within the web services, specifically to do with the removeBeforeSync parameter that you pass to it. Mainly, it doesn't seem to do anything for us. I've run the script many times, passing both true and false for this parameter, but it never seems to remove any permissions. >From what I've read, if you pass in true, it should remove the entire role first (or any permissions in the role), and then copy over any that are in the template. In this way it should sync both additions and removals; but it never seems to do any removals. Any ideas? Thanks in advance, Brian Jones Applications Development Information Technology Services Support Services Building, Room 4326 Western University (519) 661-2111 x86969 bjones86@... _______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
Re: [Building Sakai] WebServices copyRole()Hi Brian,
I should work. It was added in SAK-18109. I wonder if the Boolean value isn't being sent properly. The web services will blissfully ignore boolean values that aren't correct, I had this issue with perl and had to strongly type it, I wonder if it is the same sort of thing with python? Cheers, Steve Sent from my iPad On 15/08/2012, at 0:09, Brian Jones <bjones86@...> wrote: > Hey Steve & Community, > > I ported your Perl sync-roles-in-sites.pl script > (https://source.sakaiproject.org/contrib//swinsburg/webservice-scripts/sync- > roles-in-sites.pl) to a Python3 script for use here at Western University. > For reference, you can find it @ > https://source.sakaiproject.org/svn/msub/uwo.ca/scripts/webservice-scripts/s > yncRolesInSitesSOAP.py > > My real question lies with the copyRoles() function within the web services, > specifically to do with the removeBeforeSync parameter that you pass to it. > Mainly, it doesn't seem to do anything for us. I've run the script many > times, passing both true and false for this parameter, but it never seems to > remove any permissions. > > From what I've read, if you pass in true, it should remove the entire role > first (or any permissions in the role), and then copy over any that are in > the template. In this way it should sync both additions and removals; but it > never seems to do any removals. > > Any ideas? Thanks in advance, > > Brian Jones > Applications Development > Information Technology Services > Support Services Building, Room 4326 > Western University > (519) 661-2111 x86969 > bjones86@... > > > sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
| Free embeddable forum powered by Nabble | Forum Help |