def license_list(context, data_dict):
 model = context['model']
 _check_access('license_list', context, data_dict)
 license_register = model.Package.get_license_register()
 licenses = license_register.values()
 licenses = [l.as_dict() for l in licenses]
 return licenses

def license_list ( context , data_dict ) : model = context [ 'model' ] _check_access ( 'license_list' , context , data_dict ) license_register = model . Package . get_license_register ( ) licenses = license_register . values ( ) licenses = [ l . as_dict ( ) for l in licenses ] return licenses
return the list of licenses available for datasets on the site .