def get_publication_list(context, list, template='<STR_LIT>'):
list = List.objects.filter(list__iexact=list)<EOL>if not list:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>list = list[<NUM_LIT:0>]<EOL>publications = list.publication_set.all()<EOL>publications = publications.order_by('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>if not publications:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>populate(publications)<EOL>return render_template(<EOL>template, context['<STR_LIT>'], {'<STR_LIT:list>': list, '<STR_LIT>': publications})<EOL>
Get a publication list.