Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.contentrules.conditions.portaltype.PortalTypeCondition Class Reference
Inheritance diagram for plone.app.contentrules.conditions.portaltype.PortalTypeCondition:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.conditions.portaltype.PortalTypeCondition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def summary

Static Public Attributes

list check_types = []
string element = "plone.conditions.PortalType"

Detailed Description

The actual persistent implementation of the portal type condition element.

Note that we must mix in SimpleItem to keep Zope 2 security happy.

Definition at line 31 of file portaltype.py.


Member Function Documentation

Definition at line 42 of file portaltype.py.

00042 
00043     def summary(self):
00044         portal_types = getToolByName(getSite(), 'portal_types')
00045         titles = []
00046         for name in self.check_types:
00047             fti = getattr(portal_types, name, None)
00048             if fti is not None:
00049                 titles.append(fti.title or name)
00050         return _(u"Content types are: ${names}", mapping=dict(names=", ".join(titles)))

Here is the call graph for this function:


Member Data Documentation

Definition at line 38 of file portaltype.py.

string plone.app.contentrules.conditions.portaltype.PortalTypeCondition.element = "plone.conditions.PortalType" [static]

Definition at line 39 of file portaltype.py.


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