Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Properties
plone.app.controlpanel.site.SiteControlPanelAdapter Class Reference
Inheritance diagram for plone.app.controlpanel.site.SiteControlPanelAdapter:
Inheritance graph
[legend]
Collaboration diagram for plone.app.controlpanel.site.SiteControlPanelAdapter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_site_title
def set_site_title
def get_site_description
def set_site_description
def get_webstats_js
def set_webstats_js

Public Attributes

 portal
 context
 encoding

Static Public Attributes

tuple visible_ids = ProxyFieldProperty(ISiteSchema['visible_ids'])
tuple enable_inline_editing = ProxyFieldProperty(ISiteSchema['enable_inline_editing'])
tuple enable_link_integrity_checks = ProxyFieldProperty(ISiteSchema['enable_link_integrity_checks'])
tuple ext_editor = ProxyFieldProperty(ISiteSchema['ext_editor'])
tuple enable_sitemap = ProxyFieldProperty(ISiteSchema['enable_sitemap'])

Properties

 site_title = property(get_site_title, set_site_title)
 site_description = property(get_site_description, set_site_description)
 webstats_js = property(get_webstats_js, set_webstats_js)

Detailed Description

Definition at line 87 of file site.py.


Constructor & Destructor Documentation

Definition at line 92 of file site.py.

00092 
00093     def __init__(self, context):
00094         super(SiteControlPanelAdapter, self).__init__(context)
00095         self.portal = context
00096         pprop = getToolByName(self.portal, 'portal_properties')
00097         self.context = pprop.site_properties
00098         self.encoding = pprop.site_properties.default_charset

Here is the caller graph for this function:


Member Function Documentation

Definition at line 106 of file site.py.

00106 
00107     def get_site_description(self):
00108         description = getattr(self.portal, 'description', u'')
00109         return safe_unicode(description)

Here is the call graph for this function:

Definition at line 99 of file site.py.

00099 
00100     def get_site_title(self):
00101         title = getattr(self.portal, 'title', u'')
00102         return safe_unicode(title)

Here is the call graph for this function:

Definition at line 116 of file site.py.

00116 
00117     def get_webstats_js(self):
00118         description = getattr(self.context, 'webstats_js', u'')
00119         return safe_unicode(description)

Here is the call graph for this function:

Definition at line 110 of file site.py.

00110 
00111     def set_site_description(self, value):
00112         if value is not None:
00113             self.portal.description = value.encode(self.encoding)
00114         else:
00115             self.portal.description = ''

Definition at line 103 of file site.py.

00103 
00104     def set_site_title(self, value):
00105         self.portal.title = value.encode(self.encoding)

Definition at line 120 of file site.py.

00120 
00121     def set_webstats_js(self, value):
00122         if value is not None:
00123             self.context.webstats_js = value.encode(self.encoding)
00124         else:
00125             self.context.webstats_js = ''


Member Data Documentation

Definition at line 96 of file site.py.

Definition at line 131 of file site.py.

Definition at line 132 of file site.py.

Definition at line 134 of file site.py.

Definition at line 97 of file site.py.

Definition at line 133 of file site.py.

Definition at line 94 of file site.py.

Definition at line 130 of file site.py.


Property Documentation

Definition at line 127 of file site.py.

Definition at line 126 of file site.py.

Definition at line 128 of file site.py.


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