def missing():
  result = []

  for key, value in messages.items():
    if issubclass(key,Error):
      dir = 'error'
    elif issubclass(key,Warning):
      dir = 'warning'
    else:
      continue
  
    xml = path.join(basename, 'docs-xml', dir, key.__name__+'.xml')
    html = path.join(basename, 'docs', dir, key.__name__+'.html')
  
    if not path.exists(html) or not path.exists(xml):
      print xml
      base = key.__bases__[0]
      while base not in [Error,Warning]:
        if path.exists(path.join(basename, 'docs', dir, base.__name__+'.html')) and \
           path.exists(path.join(basename, 'docs-xml', dir, base.__name__+'.xml')):
          break
        base = base.__bases__[0]
      else:
        result.append((dir, key.__name__, value, xml, html))

  return result
Exemple #2
0
def missing():
    result = []

    for n, o in inspect.getmembers(feedvalidator.logging, isclass):
        rc = getRootClass(o)
        if not (rc):
            continue

        rcname = rc.__name__.split('.')[-1].lower()
        if rcname in ['warning', 'error']:
            fn = path.join(basename, 'docs', rcname, n + '.html')
            if not (isfile(path.join(
                    basename, fn))) and not rcname + "/" + n in ignoreMissing:
                result.append((rcname, n, "", fn, fn))

    for key, value in list(messages.items()):
        if issubclass(key, Error):
            dir = 'error'
        elif issubclass(key, Warning):
            dir = 'warning'
        else:
            continue

        html = path.join(basename, 'docs', dir, key.__name__ + '.html')
        xml = path.join(basename, 'docs-xml', dir, key.__name__ + '.xml')

        if not path.exists(xml) or not path.exists(html):
            result.append((dir, key.__name__, value, html, xml))

    return result
Exemple #3
0
def missing():
    result = []

    for key, value in messages.items():
        if issubclass(key, Error):
            dir = 'error'
        elif issubclass(key, Warning):
            dir = 'warning'
        else:
            continue

        xml = path.join(basename, 'docs-xml', dir, key.__name__ + '.xml')
        html = path.join(basename, 'docs', dir, key.__name__ + '.html')

        if not path.exists(html) or not path.exists(xml):
            print xml
            base = key.__bases__[0]
            while base not in [Error, Warning]:
                if path.exists(path.join(basename, 'docs', dir, base.__name__+'.html')) and \
                   path.exists(path.join(basename, 'docs-xml', dir, base.__name__+'.xml')):
                    break
                base = base.__bases__[0]
            else:
                result.append((dir, key.__name__, value, xml, html))

    return result
Exemple #4
0
def missing():
  result = []

  for key, value in messages.items():
    if issubclass(key,Error):
      dir = 'error'
    elif issubclass(key,Warning):
      dir = 'warning'
    else:
      continue

    xml = path.join(basename, 'docs-xml', dir, key.__name__+'.xml')

    if not path.exists(xml):
      result.append((dir, key.__name__, value, xml))

  return result