### Class OrderedList - Will generate a numbered list given a list arg.

## SYNOPSIS

    import HTMLgen

    class OrderedList(List)
      string __module__ = 'HTMLgen'
      tuple attrs = ('type', 'class', 'id', 's ...
      string tagname = 'OL'

      # Methods inherited by OrderedList from List
      def __getslice__(self, i, j)
      def __init__(self, list = None, **kw)
      def __str__(self)
      def append(self, *items)
      def column_slices(self, columns=1)
      def end_element(self)
      def multi_column_table(self)
      def render_list_item(self, item)
      def start_element(self)
      def sub_list(self, list)

      # Methods inherited by OrderedList from UserList
      def __add__(self, list)
      def __cmp__(self, list)
      def __delitem__(self, i)
      def __delslice__(self, i, j)
      def __getitem__(self, i)
      def __len__(self)
      def __mul__(self, n)
      def __mul__(self, n)
      def __radd__(self, list)
      def __repr__(self)
      def __setitem__(self, i, item)
      def __setslice__(self, i, j, list)
      def count(self, item)
      def index(self, item)
      def insert(self, i, item)
      def pop(self, i=-1)
      def remove(self, item)
      def reverse(self)
      def sort(self, *args)

    alias NumberedList = OrderedList
    alias OL = OrderedList

## DESCRIPTION

Optional keyword type can be used to specify whether you want the list items marked with: capital letters (type='A'), small letters (type='a'), large Roman numerals (type='I'), small Roman numerals (type='i'). The default is arabic numbers. The other types are HTML3.2 only and may not be supported by browsers yet. Any list contents will do. Each of the items will be emitted in HTML if they are themselves objects.

### def append(self, *items)

Append entries to the end of the list

### def column_slices(self, columns=1)

Calculate a list of index pairs bounding column slices.

### def end_element(self)

Closes the HTML element

### def multi_column_table(self)

Return a table containing the list sliced into columns.

### def render_list_item(self, item)

Renders the individual list items

Overloaded by child classes to represent other list styles.

### def start_element(self)

Generic creator for the HTML element opening tag.

Reads tagname, attrs and flags to return appropriate tag.

### def sub_list(self, list)

Recursive method for generating a subordinate list

## SEE ALSO

HTMLgen

List

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