Back to index

plone3  3.1.7
Static Public Attributes | Private Member Functions | Static Private Attributes
CMFActionIcons.tests.test_exportimport._ActionIconsToolSetup Class Reference
Inheritance diagram for CMFActionIcons.tests.test_exportimport._ActionIconsToolSetup:
Inheritance graph
[legend]
Collaboration diagram for CMFActionIcons.tests.test_exportimport._ActionIconsToolSetup:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string CATEGORY = 'testing'
string ACTION_ID = "test_action"
string TITLE = "Action Title"
int PRIORITY = 60
string ICON_EXPR = 'test_icon'

Private Member Functions

def _initSite

Static Private Attributes

string _EMPTY_EXPORT
string _EMPTY_I18N_EXPORT
string _WITH_ICON_EXPORT
string _WITH_I18N_ICON_EXPORT

Detailed Description

Definition at line 31 of file test_exportimport.py.


Member Function Documentation

def CMFActionIcons.tests.test_exportimport._ActionIconsToolSetup._initSite (   self,
  with_icon = False 
) [private]

Definition at line 90 of file test_exportimport.py.

00090 
00091     def _initSite(self, with_icon=False):
00092         from OFS.Folder import Folder
00093         from Products.CMFActionIcons.ActionIconsTool import ActionIconsTool
00094 
00095         _setUpDefaultTraversable()
00096 
00097         self.root.site = Folder(id='site')
00098         site = self.root.site
00099         tool = ActionIconsTool()
00100         site._setObject( tool.getId(), tool )
00101 
00102         sm = getSiteManager()
00103         sm.registerUtility(site.portal_actionicons, IActionIconsTool)
00104 
00105         if with_icon:
00106             tool.addActionIcon( category=self.CATEGORY
00107                               , action_id=self.ACTION_ID
00108                               , title=self.TITLE
00109                               , priority=self.PRIORITY
00110                               , icon_expr=self.ICON_EXPR
00111                               )
00112         return site
00113 

Here is the call graph for this function:


Member Data Documentation

Initial value:
"""\
<?xml version="1.0"?>
<action-icons>
</action-icons>
"""

Definition at line 39 of file test_exportimport.py.

Initial value:
"""\
<?xml version="1.0"?>
<action-icons xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="cmf">
</action-icons>
"""

Definition at line 45 of file test_exportimport.py.

Initial value:
"""\
<?xml version="1.0"?>
<action-icons xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="cmf">
<action-icon
  category="%s"
  action_id="%s"
  title="%s"
  priority="%d"
  icon_expr="%s"
  i18n:attributes="title"
  />
</action-icons>
"""

Definition at line 70 of file test_exportimport.py.

Initial value:
"""\
<?xml version="1.0"?>
<action-icons>
 <action-icon
category="%s"
action_id="%s"
title="%s"
priority="%d"
icon_expr="%s"
/>
</action-icons>
"""

Definition at line 52 of file test_exportimport.py.

Definition at line 34 of file test_exportimport.py.

Definition at line 33 of file test_exportimport.py.

Definition at line 37 of file test_exportimport.py.

Definition at line 36 of file test_exportimport.py.

Definition at line 35 of file test_exportimport.py.


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