def _get_asset_json(display_name, content_type, date, location, thumbnail_location, locked):
 asset_url = StaticContent.serialize_asset_key_with_slash(location)
 external_url = (settings.LMS_BASE + asset_url)
 return {'display_name': display_name, 'content_type': content_type, 'date_added': get_default_time_display(date), 'url': asset_url, 'external_url': external_url, 'portable_url': StaticContent.get_static_path_from_location(location), 'thumbnail': (StaticContent.serialize_asset_key_with_slash(thumbnail_location) if thumbnail_location else None), 'locked': locked, 'id': unicode(location)}

def _get_asset_json ( display_name , content_type , date , location , thumbnail_location , locked ) : asset_url = StaticContent . serialize_asset_key_with_slash ( location ) external_url = ( settings . LMS_BASE + asset_url ) return { 'display_name' : display_name , 'content_type' : content_type , 'date_added' : get_default_time_display ( date ) , 'url' : asset_url , 'external_url' : external_url , 'portable_url' : StaticContent . get_static_path_from_location ( location ) , 'thumbnail' : ( StaticContent . serialize_asset_key_with_slash ( thumbnail_location ) if thumbnail_location else None ) , 'locked' : locked , 'id' : unicode ( location ) }
helper method for formatting the asset information to send to client .