parameters: (m, subject)
return_statement: return doc
docstring: Return an HTML description of the authors of the spec.
docstring_summary: Return an HTML description of the authors of the spec.
docstring_tokens: Return an HTML description of the authors of the spec .
function: def specAuthors(m, subject):
      "Return an HTML description of the authors of the spec."
  
      subjects = [subject];
      p = findOne(m, subject, lv2.project, None)
      if p:
          subjects += [getObject(p)]
  
      dev = set()
      for s in subjects:
          for i in findStatements(m, s, doap.developer, None):
              for j in findStatements(m, getObject(i), foaf.name, None):
                  dev.add(getLiteralString(getObject(j)))
  
      maint = set()
      for s in subjects:
          for i in findStatements(m, s, doap.maintainer, None):
              for j in findStatements(m, getObject(i), foaf.name, None):
                  maint.add(getLiteralString(getObject(j)))
  
      doc = ''
  
      devdoc = ''
      first = True
      for d in dev:
          if not first:
              devdoc += ', '
          devdoc += '<span class="author" property="doap:developer">%s</span>' % d
          first = False
      if len(dev) == 1:
          doc += '<tr><th class="metahead">Developer</th><td>%s</td></tr>' % devdoc
      elif len(dev) > 0:
          doc += '<tr><th class="metahead">Developers</th><td>%s</td></tr>' % devdoc
  
      maintdoc = ''
      first = True
      for m in maint:
          if not first:
              maintdoc += ', '
          maintdoc += '<span class="author" property="doap:maintainer">%s</span>' % m
          first = False
      if len(maint) == 1:
          doc += '<tr><th class="metahead">Maintainer</th><td>%s</td></tr>' % maintdoc
      elif len(maint) > 0:
          doc += '<tr><th class="metahead">Maintainers</th><td>%s</td></tr>' % maintdoc
  
      return doc
function_tokens: def specAuthors ( m , subject ) : subjects = [ subject ] p = findOne ( m , subject , lv2 . project , None ) if p : subjects += [ getObject ( p ) ] dev = set ( ) for s in subjects : for i in findStatements ( m , s , doap . developer , None ) : for j in findStatements ( m , getObject ( i ) , foaf . name , None ) : dev . add ( getLiteralString ( getObject ( j ) ) ) maint = set ( ) for s in subjects : for i in findStatements ( m , s , doap . maintainer , None ) : for j in findStatements ( m , getObject ( i ) , foaf . name , None ) : maint . add ( getLiteralString ( getObject ( j ) ) ) doc = '' devdoc = '' first = True for d in dev : if not first : devdoc += ', ' devdoc += '<span class="author" property="doap:developer">%s</span>' % d first = False if len ( dev ) == 1 : doc += '<tr><th class="metahead">Developer</th><td>%s</td></tr>' % devdoc elif len ( dev ) > 0 : doc += '<tr><th class="metahead">Developers</th><td>%s</td></tr>' % devdoc maintdoc = '' first = True for m in maint : if not first : maintdoc += ', ' maintdoc += '<span class="author" property="doap:maintainer">%s</span>' % m first = False if len ( maint ) == 1 : doc += '<tr><th class="metahead">Maintainer</th><td>%s</td></tr>' % maintdoc elif len ( maint ) > 0 : doc += '<tr><th class="metahead">Maintainers</th><td>%s</td></tr>' % maintdoc return doc