gallerifrey.py
def createIndexPage(name, category, catlist, nextPage, prevPage, images):
    """Creates an index page with the given name and images, which
links to nextPage and prevPage"""
    template = """
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{0}</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>{0}</h1>
<h2>{1}</h2>
{2}
{3}
{4}
{3}
</body>
</html>
"""
    imgt = generateImageTable(images)
    nextprev = generateNextPrev(name, prettyPageName(name),
                                nextPage, prettyPageName(nextPage),
                                prevPage, prettyPageName(prevPage))
    outstr = template.format(TITLE, category, catlist, nextprev, imgt)
    fname = os.path.join(HTMLDIR, name)
    with open(fname, 'w') as f:
        f.write(outstr)
Creates an index page with the given name and images, which
links to nextPage and prevPage
Creates an index page with the given name and images, which
links to nextPage and prevPage
Creates an index page with the given name and images which links to nextPage and prevPage
def createIndexPage(name, category, catlist, nextPage, prevPage, images):
    template = """
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{0}</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>{0}</h1>
<h2>{1}</h2>
{2}
{3}
{4}
{3}
</body>
</html>
"""
    imgt = generateImageTable(images)
    nextprev = generateNextPrev(name, prettyPageName(name),
                                nextPage, prettyPageName(nextPage),
                                prevPage, prettyPageName(prevPage))
    outstr = template.format(TITLE, category, catlist, nextprev, imgt)
    fname = os.path.join(HTMLDIR, name)
    with open(fname, 'w') as f:
        f.write(outstr)
def createIndexPage ( name , category , catlist , nextPage , prevPage , images ) : template = """
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{0}</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>{0}</h1>
<h2>{1}</h2>
{2}
{3}
{4}
{3}
</body>
</html>
""" imgt = generateImageTable ( images ) nextprev = generateNextPrev ( name , prettyPageName ( name ) , nextPage , prettyPageName ( nextPage ) , prevPage , prettyPageName ( prevPage ) ) outstr = template . format ( TITLE , category , catlist , nextprev , imgt ) fname = os . path . join ( HTMLDIR , name ) with open ( fname , 'w' ) as f : f . write ( outstr )
Creates an index page with the given name and images, which
links to nextPage and prevPage
Creates an index page with the given name and images which links to nextPage and prevPage
"""Creates an index page with the given name and images, which
links to nextPage and prevPage"""
name
category
catlist
nextPage
prevPage
images