def _deprecation_check(arg0):
  if os.path.basename(arg0) == 'desktop':
    to_use = os.path.join(os.path.dirname(arg0), 'hue')
    msg = "Warning: '%s' has been deprecated. Please use '%s' instead." % (arg0, to_use)
    print >> sys.stderr, msg
    LOG.warn(msg)
Check current user permission set
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/manage_entry.py/_deprecation_check--crossover with--dataset/ETHPy150Open demianbrecht/flask-canvas/flask_canvas.py/User.has_permissions