Back to index

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

List of all members.

Public Member Functions

def __init__
def get_theme
def set_theme
def get_mark_special_links
def set_mark_special_links
def get_ext_links_open_new_window
def set_ext_links_open_new_window
def get_icon_visibility
def set_icon_visibility

Public Attributes

 context
 jstool
 props

Properties

 theme = property(get_theme, set_theme)
 mark_special_links
 ext_links_open_new_window
 icon_visibility = property(get_icon_visibility,set_icon_visibility)

Detailed Description

Definition at line 61 of file skins.py.


Constructor & Destructor Documentation

Definition at line 66 of file skins.py.

00066 
00067     def __init__(self, context):
00068         super(SkinsControlPanelAdapter, self).__init__(context)
00069         self.context = getToolByName(context, 'portal_skins')
00070         self.jstool = getToolByName(context, 'portal_javascripts')
00071         ptool = getToolByName(context, 'portal_properties')
00072         self.props = ptool.site_properties

Here is the caller graph for this function:


Member Function Documentation

Definition at line 94 of file skins.py.

00094 
00095     def get_ext_links_open_new_window(self):
00096         elonw = self.props.external_links_open_new_window
00097         if elonw == 'true':
00098             return True
00099         return False

Definition at line 110 of file skins.py.

00110 
00111     def get_icon_visibility(self):
00112         return self.props.icon_visibility

Definition at line 81 of file skins.py.

00081 
00082     def get_mark_special_links(self):
00083         return self.jstool.getResource('mark_special_links.js').getEnabled()

Definition at line 73 of file skins.py.

00073 
00074     def get_theme(self):
00075         return self.context.getDefaultSkin()

Definition at line 100 of file skins.py.

00100 
00101     def set_ext_links_open_new_window(self, value):
00102         if value:
00103             self.props.manage_changeProperties(external_links_open_new_window='true')
00104         else:
00105             self.props.manage_changeProperties(external_links_open_new_window='false')
00106         self.jstool.cookResources()

Definition at line 113 of file skins.py.

00113 
00114     def set_icon_visibility(self, value):
00115         self.props.manage_changeProperties(icon_visibility=value)

Definition at line 84 of file skins.py.

00084 
00085     def set_mark_special_links(self, value):
00086         if value:
00087             self.jstool.getResource('mark_special_links.js').setEnabled(True)
00088         else:
00089             self.jstool.getResource('mark_special_links.js').setEnabled(False)
00090         self.jstool.cookResources()

Definition at line 76 of file skins.py.

00076 
00077     def set_theme(self, value):
00078         self.context.default_skin = value


Member Data Documentation

Definition at line 68 of file skins.py.

Definition at line 69 of file skins.py.

Definition at line 71 of file skins.py.


Property Documentation

Initial value:
property(get_ext_links_open_new_window,
                                         set_ext_links_open_new_window)

Definition at line 107 of file skins.py.

Definition at line 116 of file skins.py.

Initial value:
property(get_mark_special_links,
                                  set_mark_special_links)

Definition at line 91 of file skins.py.

Definition at line 79 of file skins.py.


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