示例#1
0
文件: conf.py 项目: 15580056814/hue
def config_validator(user):
  res = []

  status = get_oozie_status(user)

  if 'NORMAL' not in status:
    res.append((NICE_NAME, _("The app won't work without a running Oozie server")))

  return res
示例#2
0
文件: conf.py 项目: sandredd/hue-1
def config_validator(user):
  res = []

  if not 'test' in sys.argv: # Avoid tests hanging
    status = get_oozie_status(user)

    if 'NORMAL' not in status:
      res.append((NICE_NAME, _("The app won't work without a running Oozie server")))

  return res
示例#3
0
文件: conf.py 项目: rferolino/hue
def config_validator():
  res = []

  if not 'test' in sys.argv: # Avoid tests hanging
    status = get_oozie_status()
  
    if 'NORMAL' not in status:
      res.append((NICE_NAME, _("The app won't work without a running Oozie server")))

  return res
示例#4
0
def config_validator(user):
    res = []

    status = get_oozie_status(user)

    if 'NORMAL' not in status:
        res.append((NICE_NAME,
                    _("The app won't work without a running Oozie server")))

    return res