### Class Month - Class representing a month as an HTML document (page).

## SYNOPSIS

    import HTMLcalendar

    class Month(SimpleDocument)
      def __getitem__(self, index)
      def __init__(self, year=1997, month=1)
      string __module__ = 'HTMLcalendar'
      def __setitem__(self, index, dayobj)
      def add_appt(self, appt)

      # Methods inherited by Month from SimpleDocument
      def __str__(self)
      def html_body_tag(self)
      def html_head(self)

      # Methods inherited by Month 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)

## DESCRIPTION

Tweeks to the appearance of the calendar would mostly be done here. Indexing into this class instance will reference the DateTable object contained within.

### def add_appt(self, appt)

Argument is a 6-tuple.

Form: (year, month, day, hour, minute, text) int int int str str str <- type

### 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 Document object.

### def html_body_tag(self)

Return BODY tag with attributes.

### def html_head(self)

Generate the HEAD TITLE and BODY tags.

### def prepend(self, *items)

Add content to the beginning of the Document object.

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

### def write(self, filename = None)

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.

## SEE ALSO

HTMLcalendar

SimpleDocument

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: dev@null
Generated: Tue Apr 20, 1999