API Documentation

Skins tool interface.

$Id: portal_skins.py,v 1.7.14.2 2004/04/23 21:11:34 sidnei Exp $


class portal_skins

An object that provides skins to a portal object.


id = Must be set to "portal_skins"

Methods

getSkinPath(name):

Converts a skin name to a skin path.

getDefaultSkin():

Returns the default skin name.

getRequestVarname():

Returns the variable name to look for in the REQUEST.

getSkinByName(name):

Returns the named skin.

getSkinByPath(path, raise_exc=0):

Returns a skin at the given path.

A skin path is of the format: some/path, some/other/path, ... The first part has precedence.

A skin is a specially wrapped object that looks through the layers in the correct order.

getSkinSelections():

Returns the sorted list of available skin names.