Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Quiet if not LTI
Browse files Browse the repository at this point in the history
  • Loading branch information
moschlar committed Apr 7, 2014
1 parent 51e4216 commit 301c7e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sauce/controllers/crc/assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class AssignmentsCrudController(FilterCrudRestController):
for l in obj.allowed_languages),
'lti_url': lambda filler, obj:
u'<span title="%s:%s">%s</span>' % (obj.lti.oauth_key, obj.lti.oauth_secret,
url(obj.lti_url, qualified=True)),
url(obj.lti_url, qualified=True)) if obj.lti else u'',
'submissions': _submissions,
'__base_widget_args__': {'sortList': [[1, 0], [3, 0]]},
}
Expand Down
2 changes: 1 addition & 1 deletion sauce/controllers/crc/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class EventsCrudController(FilterCrudRestController):
'_members': lambda filler, obj:
', '.join(link_to(student.display_name, '../students/%d/edit' % student.id)
for student in obj._members),
'lti': lambda filler, obj: u'%s:%s' % (obj.lti.oauth_key, obj.lti.oauth_secret),
'lti': lambda filler, obj: u'%s:%s' % (obj.lti.oauth_key, obj.lti.oauth_secret) if obj.lti else u'',
'__base_widget_args__': {'sortList': [[6, 1], [5, 1]]},
}
__form_options__ = {
Expand Down

0 comments on commit 301c7e1

Please sign in to comment.