def show_all(key):
def func(request, abbr, session, bill_id, key):<EOL><INDENT>fixed_bill_id = fix_bill_id(bill_id)<EOL>if fixed_bill_id.replace('<STR_LIT:U+0020>', '<STR_LIT>') != bill_id:<EOL><INDENT>return redirect('<STR_LIT>', abbr=abbr, session=session,<EOL>bill_id=fixed_bill_id.replace('<STR_LIT:U+0020>', '<STR_LIT>'))<EOL><DEDENT>bill = db.bills.find_one({settings.LEVEL_FIELD: abbr,<EOL>'<STR_LIT>': session,<EOL>'<STR_LIT>': fixed_bill_id})<EOL>if bill is None:<EOL><INDENT>raise Http404('<STR_LIT>'.format(abbr, session,<EOL>bill_id))<EOL><DEDENT>return render(request, templatename('<STR_LIT>' % key),<EOL>dict(abbr=abbr, metadata=Metadata.get_object(abbr),<EOL>bill=bill, sources=bill['<STR_LIT>'],<EOL>nav_active='<STR_LIT>'))<EOL><DEDENT>return func<EOL>
Context:
    - abbr
    - metadata
    - bill
    - sources
    - nav_active

Templates:
    - billy/web/public/bill_all_{key}.html
        - where key is passed in, like "actions", etc.