varmessage=gettext("Your changes will not take effect until you save your progress. Take care with key and value formatting, as validation is not implemented.")
// call validateKey on each to ensure proper format
// call validateKey on each to ensure proper format
// check for dupes
// check for dupes
varself=event.data;
varself=this;
self.model.save({},
this.model.save({},
{
{
success:function(){
success:function(){
self.render();
self.render();
self.showMessage(self.successful_changes);
varmessage=gettext("Please note that validation of your policy key and value pairs is not currently in place yet. If you are having difficulties, please review your policy pairs.");
self.saved=newCMS.Views.Alert.Confirmation({
title:gettext("Your policy changes have been saved."),
<h2class="title title-3"id="notification-changesMade-title">You've Made Some Changes</h2>
<pid="notification-changesMade-description">Your changes will not take effect until you <strong>save your progress</strong>. Take care with key and value formatting, as validation is <strong>not implemented</strong>.</p>
<h2class="title title-3">Your policy changes have been saved.</h2>
<p>Please note that validation of your policy key and value pairs is not currently in place yet. If you are having difficulties, please review your policy pairs.</p>
@@ -58,21 +58,24 @@ In the discussion service, notifications are handled asynchronously using a thir
...
@@ -58,21 +58,24 @@ In the discussion service, notifications are handled asynchronously using a thir
bundle exec rake jobs:work
bundle exec rake jobs:work
## Initialize roles and permissions
## From the edx-platform django app, initialize roles and permissions
To fully test the discussion forum, you might want to act as a moderator or an administrator. Currently, moderators can manage everything in the forum, and administrator can manage everything plus assigning and revoking moderator status of other users.
To fully test the discussion forum, you might want to act as a moderator or an administrator. Currently, moderators can manage everything in the forum, and administrator can manage everything plus assigning and revoking moderator status of other users.
First make sure that the database is up-to-date:
First make sure that the database is up-to-date:
rake django-admin[syncdb]
rake resetdb
rake django-admin[migrate]
If you have created users in the edx-platform django apps when the comment service was not running, you will need to one-way sync the users into the comment service back end database:
rake django-admin[sync_user_info]
For convenience, add the following environment variables to the terminal (assuming that you're using configuration set lms.envs.dev):
For convenience, add the following environment variables to the terminal (assuming that you're using configuration set lms.envs.dev):
export DJANGO_SETTINGS_MODULE=lms.envs.dev
export DJANGO_SETTINGS_MODULE=lms.envs.dev
export PYTHONPATH=.
export PYTHONPATH=.
Now initialzie roles and permissions, providing a course id eg.:
Now initialize roles and permissions, providing a course id. See the example below. Note that you do not need to do this for Studio-created courses, as the Studio application does this for you.