Back to index

plone3  3.1.7
Classes | Functions | Variables
plone.app.controlpanel.types Namespace Reference

Classes

class  TypesControlPanel

Functions

def format_description

Variables

list VERSION_POLICIES

Function Documentation

def plone.app.controlpanel.types.format_description (   text,
  request = None 
)

Definition at line 17 of file types.py.

00017 
00018 def format_description(text, request=None):
00019     # We expect the workflow to be a text of '- ' divided bullet points.
00020     text = translate(text.strip(), domain='plone', context=request)
00021     return [s.strip() for s in text.split('- ') if s]
00022 
00023 
# These are convenient / user friendly versioning policies.

Here is the caller graph for this function:


Variable Documentation

Initial value:
00001 [
00002         dict(id="off",
00003              policy=(),
00004              title=_(u"versioning_off",
00005                      default=u"No versioning")),
00006                           
00007         dict(id="manual",
00008              policy=("version_on_revert",),
00009              title=_(u"versioning_manual",
00010                      default=u"Manual")),
00011 
00012         dict(id="automatic",
00013              policy=("at_edit_autoversion", "version_on_revert"),
00014              title=_(u"versioning_automatic",
00015                      default=u"Automatic")),
00016         ]

Definition at line 24 of file types.py.