def wrap_with_license(block, view, frag, context):
 license = getattr(block, 'license', None)
 if license:
  context = {'license': license}
  frag.content += block.runtime.render_template('license_wrapper.html', context)
 return frag

def wrap_with_license ( block , view , frag , context ) : license = getattr ( block , 'license' , None ) if license : context = { 'license' : license } frag . content += block . runtime . render_template ( 'license_wrapper.html' , context ) return frag
in the lms .