Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schoolyourself-xblock
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
schoolyourself-xblock
Commits
0c88d25e
Commit
0c88d25e
authored
Apr 17, 2015
by
John Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the partner_id default to "edx" if it's left blank
parent
2a58655c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
schoolyourself/schoolyourself.py
+7
-1
No files found.
schoolyourself/schoolyourself.py
View file @
0c88d25e
...
@@ -145,7 +145,13 @@ class SchoolYourselfXBlock(XBlock):
...
@@ -145,7 +145,13 @@ class SchoolYourselfXBlock(XBlock):
If a shared_key is provided and there is a username to encode,
If a shared_key is provided and there is a username to encode,
we will sign it with the shared key.
we will sign it with the shared key.
"""
"""
url_params
=
{
"partner"
:
self
.
partner_id
}
if
not
self
.
partner_id
:
# Default to "edx" if there's nothing set.
partner_id
=
"edx"
else
:
partner_id
=
self
.
partner_id
url_params
=
{
"partner"
:
partner_id
}
user_id
=
self
.
get_student_id
()
user_id
=
self
.
get_student_id
()
if
user_id
:
if
user_id
:
url_params
[
"partner_user_id"
]
=
user_id
url_params
[
"partner_user_id"
]
=
user_id
...
...
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