Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
b5a00571
Commit
b5a00571
authored
Sep 28, 2017
by
Michael LoTurco
Committed by
Troy Sankey
Sep 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a bunch of logging
parent
7b1159dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cms/djangoapps/contentstore/views/course.py
+5
-3
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
b5a00571
...
@@ -1315,10 +1315,11 @@ def seed_rocket_chat(course_key):
...
@@ -1315,10 +1315,11 @@ def seed_rocket_chat(course_key):
master_password
=
'apipassword'
master_password
=
'apipassword'
rocket_url
=
'https://hackachattest-chat.sandbox.edx.org'
rocket_url
=
'https://hackachattest-chat.sandbox.edx.org'
log
.
info
(
'Seeding rocket chat group'
)
rocketWrap
=
RocketWrap
(
master_username
,
master_password
,
server_url
=
rocket_url
,
ssl_verify
=
False
)
rocketWrap
=
RocketWrap
(
master_username
,
master_password
,
server_url
=
rocket_url
,
ssl_verify
=
False
)
log
.
info
(
'instantiated wrapper'
)
newgroup
=
rocketWrap
.
create_new_group
(
course_key
)
newgroup
=
rocketWrap
.
create_new_group
(
course_key
)
log
.
info
(
'made group'
)
# course_staff = [] # get_course_staff(course_key) #not a real call, this is pseudo
# course_staff = [] # get_course_staff(course_key) #not a real call, this is pseudo
# for user in course_staff:
# for user in course_staff:
# rocketuser = rocketWrap.create_user(user.email, user.name, user.password, user.username)
# rocketuser = rocketWrap.create_user(user.email, user.name, user.password, user.username)
...
@@ -1326,6 +1327,7 @@ def seed_rocket_chat(course_key):
...
@@ -1326,6 +1327,7 @@ def seed_rocket_chat(course_key):
description
=
"test"
# get_short_description(course_key) #not a real call this is pseudo
description
=
"test"
# get_short_description(course_key) #not a real call this is pseudo
rocket
.
set_topic
(
newgroup
.
name
,
description
)
rocket
.
set_topic
(
newgroup
.
name
,
description
)
log
.
info
(
'set topic'
)
class
TextbookValidationError
(
Exception
):
class
TextbookValidationError
(
Exception
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment