gallerifrey.py
def generateCategoryTable(categories):
    """Returns an HTML table with links to all the categories given."""
    keys = categories.keys()
    keys.sort()
    itemstring = """
  <p><a href="{0}">{1} ({2})</a>
  </p>
"""
    items = [itemstring.format(
            getIndexPageName(item, 0), item, 
            len(categories[item])
            )
             for item in keys]
    header = '\n<table class="categorytable">\n<tr>\n'
    footer = '\n</tr>\n</table>'
    padding = '<td><p>&nbsp;</p></td>'
    return generateTable(items, "categorytable", "<p>&nbsp</p>", 10)
    
    #return '<p class="categoryList">' + ' | '.join(items) + '</p>'
Returns an HTML table with links to all the categories given.
Returns an HTML table with links to all the categories given.
Returns an HTML table with links to all the categories given .
def generateCategoryTable(categories):
    keys = categories.keys()
    keys.sort()
    itemstring = """
  <p><a href="{0}">{1} ({2})</a>
  </p>
"""
    items = [itemstring.format(
            getIndexPageName(item, 0), item, 
            len(categories[item])
            )
             for item in keys]
    header = '\n<table class="categorytable">\n<tr>\n'
    footer = '\n</tr>\n</table>'
    padding = '<td><p>&nbsp;</p></td>'
    return generateTable(items, "categorytable", "<p>&nbsp</p>", 10)
def generateCategoryTable ( categories ) : keys = categories . keys ( ) keys . sort ( ) itemstring = """
  <p><a href="{0}">{1} ({2})</a>
  </p>
""" items = [ itemstring . format ( getIndexPageName ( item , 0 ) , item , len ( categories [ item ] ) ) for item in keys ] header = '\n<table class="categorytable">\n<tr>\n' footer = '\n</tr>\n</table>' padding = '<td><p>&nbsp;</p></td>' return generateTable ( items , "categorytable" , "<p>&nbsp</p>" , 10 )
Returns an HTML table with links to all the categories given.
Returns an HTML table with links to all the categories given .
"""Returns an HTML table with links to all the categories given.""" #return '<p class="categoryList">' + ' | '.join(items) + '</p>'
categories