Previous Next blank.gif blank.gif

Class Container


SYNOPSIS

import HTMLgen
class Container
  def __add__(self, other)
  def __init__(self, *args, **kw)
  string __module__ = 'HTMLgen'
  def __str__(self)
  def append(self, *items)
  def append_file(self, filename, marker_function = None)
  def copy(self)
  def prepend(self, *items)

DESCRIPTION

A holder for a list of HTMLgen objects.

def append(self, *items)

Add content to the Document object.

Arg items can be plain text or objects; multiple arguments supported.

def append_file(self, filename, marker_function = None)

Add the contents of a file to the document.

filename
the filename of the file to be read [string]
marker_function
a callable object which the text read from the file will be passed through before being added to the document.

def copy(self)

Return a complete copy of the current Container object.

def prepend(self, *items)

Add content to the beginning of the Document object.

Arg items can be plain text or objects; multiple arguments supported.

SEE ALSO

HTMLgen


Previous Next blank.gif blank.gif
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999