Package lemon :: Package external :: Package Cheetah :: Package Tools :: Module SiteHierarchy
[show private | hide private]
[frames | no frames]

Module lemon.external.Cheetah.Tools.SiteHierarchy

Create menus and crumbs from a site hierarchy.

You define the site hierarchy as lists/tuples.  Each location in the hierarchy
is a (url, description) tuple.  Each list has the base URL/text in the 0
position, and all the children coming after it.  Any child can be a list,
representing further depth to the hierarchy.  See the end of the file for an
example hierarchy.

Use Hierarchy(contents, currentURL), where contents is this hierarchy, and
currentURL is the position you are currently in.  The menubar and crumbs methods
give you the HTML output.

There are methods you can override to customize the HTML output.

Meta-Data
================================================================================
Author: Ian Bicking <ianb@colorstudy.com>
Version: $Revision: 1.1 $
Start Date: 2001/07/23
Last Revision Date: $Date: 2003/08/12 09:17:11 $

Classes
Hierarchy  

Variable Summary
str __author__ = 'Ian Bicking <ianb@colorstudy.com>'
str __version__ = '1.1'
bool False = False
bool True = True

Variable Details

__author__

Type:
str
Value:
'Ian Bicking <ianb@colorstudy.com>'                                    

__version__

Type:
str
Value:
'1.1'                                                                  

False

Type:
bool
Value:
False                                                                  

True

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.0 on Mon Nov 10 15:08:05 2003 http://epydoc.sf.net