def is_admin_context(context):
 if (not context):
  LOG.warning(_LW('Use of empty request context is deprecated'), DeprecationWarning)
  raise Exception('die')
 return context.is_admin

def is_admin_context ( context ) : if ( not context ) : LOG . warning ( _LW ( 'Use of empty request context is deprecated' ) , DeprecationWarning ) raise Exception ( 'die' ) return context . is_admin
indicates if the request context is an administrator .