def no_admin_disabled(f):
 @functools.wraps(f)
 def wrapper(*args, **kw):
  addon = kw.get('addon')
  if (addon and (addon.status == amo.STATUS_DISABLED)):
   raise http.Http404()
  return f(*args, **kw)
 return wrapper

def no_admin_disabled ( f ) : @ functools . wraps ( f ) def wrapper ( * args , ** kw ) : addon = kw . get ( 'addon' ) if ( addon and ( addon . status == amo . STATUS_DISABLED ) ) : raise http . Http404 ( ) return f ( * args , ** kw ) return wrapper
requires the addon not be status_disabled .