Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.vocabularies.terms.BrowsableTerm Class Reference
Inheritance diagram for plone.app.vocabularies.terms.BrowsableTerm:
Inheritance graph
[legend]
Collaboration diagram for plone.app.vocabularies.terms.BrowsableTerm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

 browse_token
 parent_token
 description

Detailed Description

  >>> term = BrowsableTerm('value')
  >>> term.value, term.token, term.title, term.description
  ('value', 'value', None, None)
  >>> IBrowsableTerm.providedBy(term)
  False

  >>> term = BrowsableTerm('value', 'token', 'title',
  ...                      description='description',
  ...                      browse_token='browse_token',
  ...                      parent_token='parent_token')
  >>> term.value, term.token, term.title, term.description
  ('value', 'token', 'title', 'description')
  >>> term.browse_token, term.parent_token
  ('browse_token', 'parent_token')
  >>> IBrowsableTerm.providedBy(term)
  True

Definition at line 23 of file terms.py.


Constructor & Destructor Documentation

def plone.app.vocabularies.terms.BrowsableTerm.__init__ (   self,
  value,
  token = None,
  title = None,
  description = None,
  browse_token = None,
  parent_token = None 
)

Definition at line 44 of file terms.py.

00044 
00045                  browse_token=None, parent_token=None):
00046         super(BrowsableTerm, self).__init__(value, token=token, 
00047                                             title=title, description=description)
00048         self.browse_token = browse_token
00049         self.parent_token = parent_token
00050         if browse_token is not None or parent_token is not None:
00051             alsoProvides(self, IBrowsableTerm)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 47 of file terms.py.

Definition at line 21 of file terms.py.

Definition at line 48 of file terms.py.


The documentation for this class was generated from the following file: