# Classes class AbstractTag class AbstractTagSingle class Area class BR(AbstractTagSingle) class BasicDocument class Comment class DefinitionList(List) class Form class Frame class Frameset class FramesetDocument(BasicDocument) class Heading(AbstractTag) class Href class Image(AbstractTagSingle) class ImageBulletList(List) class InitialCaps class Input class List(UserList) class MailTo class Map class Meta class Name(Href) class NonBulletList(List) class P class RawText class Script class Select(UserList) class SeriesDocument(SimpleDocument) class SimpleDocument(BasicDocument) class Table class Text class Textarea class URL
# Functions def escape(text) def getgifsize(path, data=None) def markup_re(text, rex=None, marker=None, collapse=0) def markup_regex(text, rex=None, marker=None, collapse=0) def mpath(path) def relpath(path1, path2) replace (str, old, new[, maxsplit]) -> string
# Variables string CONTYPE = 'Content-Type: text/html\0 ... string DOCTYPE = '<!DOCTYPE HTML PUBLIC "-/ ... int I_am_a_list = 1 string __file__ = 'HTMLgen.py' string __version__ = '2.0.6'
Each HTML tag type has a supporting class which is responsible for emitting itself as valid HTML formatted text. An attempt is made to provide classes for newer HTML 3.2 and proposed tag elements. An excellant reference for HTML tag elements can be found at Sandia National Labs. Also, I used the HTML book by Musciano and Kennedy from O'Reilly (2nd. Ed.) as the definative reference.
The Document classes are container objects which act as a focal point to populate all the contents of a particular web page. It also can enforce consistent document formating according to the guidelines from the Yale Web Style Manual.
Features include customization of document template graphics / colors through use of resource files, minimizing the need for modifying or subclassing from the module source code. Support for tables, frames, forms (persistant and otherwise) and client-side imagemaps are included.
A newer implementation for the Table support is now included, TableLite(). In support of this there are new tag classes TD, TH, TR and Caption. These class instances can be assembled in any way to populate the TableLite container object.
UserList copy os regsub string time
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Sat Mar 7 1998