Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
CMFDefault.PropertiesTool.PropertiesTool Class Reference
Inheritance diagram for CMFDefault.PropertiesTool.PropertiesTool:
Inheritance graph
[legend]
Collaboration diagram for CMFDefault.PropertiesTool.PropertiesTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def editProperties
def title
def smtp_server

Static Public Attributes

string id = 'portal_properties'
string meta_type = 'Default Properties Tool'
tuple security = ClassSecurityInfo()
tuple manage_options
tuple manage_overview = DTMLFile( 'explainPropertiesTool', _dtmldir )

Static Private Attributes

tuple __implements__ = (z2IPropertiesTool, )

Detailed Description

Definition at line 38 of file PropertiesTool.py.


Member Function Documentation

Change portal settings

Definition at line 63 of file PropertiesTool.py.

00063 
00064     def editProperties(self, props):
00065         '''Change portal settings'''
00066         site = getUtility(ISiteRoot)
00067         site.manage_changeProperties(**props)
00068         getUtility(IMailHost).smtp_host = props['smtp_server']
00069         if hasattr(self, 'propertysheets'):
00070             ps = self.propertysheets
00071             if hasattr(ps, 'props'):
00072                 ps.props.manage_changeProperties(props)

Definition at line 80 of file PropertiesTool.py.

00080 
00081     def smtp_server(self):
00082         return getUtility(IMailHost).smtp_host
00083 
00084 InitializeClass(PropertiesTool)
00085 registerToolInterface('portal_properties', IPropertiesTool)

Here is the call graph for this function:

Definition at line 73 of file PropertiesTool.py.

00073 
00074     def title(self):
00075         site = queryUtility(ISiteRoot)
00076         if site is None:
00077             # fallback
00078             return aq_parent(aq_inner(self)).title
00079         return site.title

Here is the caller graph for this function:


Member Data Documentation

tuple CMFDefault.PropertiesTool.PropertiesTool.__implements__ = (z2IPropertiesTool, ) [static, private]

Definition at line 41 of file PropertiesTool.py.

string CMFDefault.PropertiesTool.PropertiesTool.id = 'portal_properties' [static]

Definition at line 43 of file PropertiesTool.py.

Initial value:
( ({'label': 'Overview',
                         'action': 'manage_overview'},)
                     + SimpleItem.manage_options
                     )

Definition at line 48 of file PropertiesTool.py.

tuple CMFDefault.PropertiesTool.PropertiesTool.manage_overview = DTMLFile( 'explainPropertiesTool', _dtmldir ) [static]

Definition at line 57 of file PropertiesTool.py.

string CMFDefault.PropertiesTool.PropertiesTool.meta_type = 'Default Properties Tool' [static]

Definition at line 44 of file PropertiesTool.py.

tuple CMFDefault.PropertiesTool.PropertiesTool.security = ClassSecurityInfo() [static]

Definition at line 46 of file PropertiesTool.py.


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