Skip to content

Commit

Permalink
Merge pull request #68 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mikeseibel authored Aug 27, 2020
2 parents a08273e + a56d9f6 commit 5096a0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions blti/views/develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
class BLTIDevBase(TemplateView):
def lti_app(self):
try:
if len(settings.LTI_DEVELOP_APP) <= 0:
raise BLTIException("Empty setting: LTI_DEVELOP_APP")

return settings.LTI_DEVELOP_APP
except AttributeError:
raise BLTIException("Missing setting: LTI_DEVELOP_APP")
Expand Down Expand Up @@ -95,8 +98,6 @@ class BLTIDevLaunch(BLTIDevBase):
("lti_version", "LTI-1p0"),
("oauth_callback", "about:blank"),
("resource_link_id", "E9a206DC909a330e9F8eF183b7BB4B9718aBB62d"),
("resource_link_title",
"UW LTI Development ({})".format(self.lti_app())),
("tool_consumer_info_product_family_code", "canvas"),
("tool_consumer_instance_name", "University of Washington"),
("user_id", "e1ec31bd10a32f61dd65975ce4eb98e9f106bd7d"),
Expand All @@ -115,6 +116,8 @@ def get_context_data(self, **kwargs):
'uwcourse:{}:arts-&-sciences:psych:psych'.format(campus)),
("oauth_timestamp", generate_timestamp()),
("oauth_nonce", generate_nonce()),
("resource_link_title",
"UW LTI Development ({})".format(self.lti_app())),
]

lti_parameters += self._static_lti_parameters
Expand Down

0 comments on commit 5096a0d

Please sign in to comment.