import HTMLgen
class SeriesDocument(SimpleDocument) string __module__ = 'HTMLgen' def __str__(self) string author = 'Micky Mouse' tuple banner = ('/image/banner.gif', 472, 30) tuple blank = ('../image/blank.gif', 71, 19) string email = 'micky@disney.com' def footer(self) None alinkcolor = None None alinkcolor = None None alinkcolor = None None alinkcolor = None def header(self) tuple home = ('../image/BTN_HomePage.gi ... tuple logo = ('/image/logo.gif', 36, 35) def nav_buttons(self) tuple next = ('../image/BTN_NextPage.gi ... string place_nav_buttons = 'yes' tuple prev = ('../image/BTN_PrevPage.gi ... None alinkcolor = None tuple top = ('../image/BTN_ManualTop.g ... string zone = ' Central US' # Methods inherited by SeriesDocument from SimpleDocument def __init__(self, resource = None, **kw) def html_body_tag(self) def html_head(self) # Methods inherited by SeriesDocument from BasicDocument def append(self, *items) def append_file(self, filename, marker_function = None) def copy(self) def prepend(self, *items) def write(self, filename = None)
alias Document = SeriesDocument
Formerly known as Document().
Navigation mechanisms are provided.
Single optional string argument for the path to a resource file used to specify document parameters. This helps minimize the need for subclassing from this class. Keyword parameters may be used for any of the following class attributes. See HTMLtest.py for example usage.
Add content to the Document object.
Arg items can be plain text or objects; multiple arguments supported.
Add the contents of a file to the document.
Return a complete copy of the current Document object.
Generate the standard footer markups.
Generate the standard header markups.
Return BODY tag with attributes.
Generate the HEAD TITLE and BODY tags.
Generate hyperlinked navigation buttons.
If a self.go* attribute is null that corresponding button is replaced with a transparent gif to properly space the remaining buttons.
Add content to the beginning of the Document object.
Arg items can be plain text or objects; multiple arguments supported.
Emit the Document HTML to a file or standard output.
In Unix you can use environment variables in filenames. Will print to stdout if no argument.
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999