#NEWLINE# def require_context( f ) : #NEWLINE# #INDENT# 'Decorator to require *any* user or admin context.\n\n    The first argument to the wrapped function must be the context.\n    ' #NEWLINE# @ functools . wraps ( f ) #NEWLINE# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# ec2api . context . require_context ( args [ 0 ] ) #NEWLINE# return f ( * args , ** kwargs ) #NEWLINE# #UNINDENT# return f