Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFCore.exportimport.tests.test_actions Namespace Reference

Classes

class  DummyTool
class  DummyUser
class  DummyMembershipTool
class  DummyActionsTool
class  ActionNodeAdapterTests
class  ActionCategoryNodeAdapterTests
class  ActionsToolXMLAdapterTests
class  _ActionSetup
class  exportActionProvidersTests
class  importActionProvidersTests

Functions

def test_suite

Variables

string _ACTION_XML
string _ACTIONCATEGORY_XML
string _ACTIONSTOOL_BODY
string _EMPTY_EXPORT
string _NORMAL_EXPORT
string _NEWSYTLE_EXPORT
string _I18N_IMPORT
string _INSERT_IMPORT
string _REMOVE_IMPORT

Function Documentation

Definition at line 590 of file test_actions.py.

00590 
00591 def test_suite():
00592     return unittest.TestSuite((
00593         unittest.makeSuite(ActionNodeAdapterTests),
00594         unittest.makeSuite(ActionCategoryNodeAdapterTests),
00595         unittest.makeSuite(ActionsToolXMLAdapterTests),
00596         unittest.makeSuite(exportActionProvidersTests),
00597         unittest.makeSuite(importActionProvidersTests),
00598         ))

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 """\
00002 <object name="foo_action" meta_type="CMF Action">
00003  <property name="title">Foo</property>
00004  <property name="description"></property>
00005  <property name="url_expr">string:${object_url}/foo</property>
00006  <property name="icon_expr"></property>
00007  <property name="available_expr">python:1</property>
00008  <property name="permissions"/>
00009  <property name="visible">True</property>
00010 </object>
00011 """

Definition at line 39 of file test_actions.py.

Initial value:
00001 """\
00002 <object name="foo_category" meta_type="CMF Action Category">
00003  <property name="title"></property>
00004  <object name="foo_action" meta_type="CMF Action">
00005   <property name="title"></property>
00006   <property name="description"></property>
00007   <property name="url_expr"></property>
00008   <property name="icon_expr"></property>
00009   <property name="available_expr"></property>
00010   <property name="permissions"/>
00011   <property name="visible">True</property>
00012  </object>
00013 </object>
00014 """

Definition at line 51 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions" meta_type="CMF Actions Tool"
00004    xmlns:i18n="http://xml.zope.org/namespaces/i18n">
00005  <action-provider name="portal_actions"/>
00006  <object name="foo_category" meta_type="CMF Action Category">
00007   <property name="title"></property>
00008   <object name="foo_action" meta_type="CMF Action" i18n:domain="foo_domain">
00009    <property name="title" i18n:translate=""></property>
00010    <property name="description" i18n:translate=""></property>
00011    <property name="url_expr"></property>
00012    <property name="icon_expr"></property>
00013    <property name="available_expr"></property>
00014    <property name="permissions"/>
00015    <property name="visible">True</property>
00016   </object>
00017  </object>
00018 </object>
00019 """

Definition at line 66 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions" meta_type="CMF Actions Tool"
00004    xmlns:i18n="http://xml.zope.org/namespaces/i18n">
00005  <action-provider name="portal_actions"/>
00006 </object>
00007 """

Definition at line 86 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions" meta_type="CMF Actions Tool"
00004    xmlns:i18n="http://xml.zope.org/namespaces/i18n">
00005  <action-provider name="portal_actions"/>
00006  <object name="dummy" meta_type="CMF Action Category">
00007   <property name="title"></property>
00008   <object name="foo" meta_type="CMF Action" i18n:domain="foo_domain">
00009    <property name="title" i18n:translate="">Foo</property>
00010    <property name="description" i18n:translate=""></property>
00011    <property name="url_expr">string:${object_url}/foo</property>
00012    <property name="icon_expr"></property>
00013    <property name="available_expr">python:1</property>
00014    <property name="permissions"></property>
00015    <property name="visible">True</property>
00016   </object>
00017  </object>
00018 </object>
00019 """

Definition at line 151 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions">
00004  <object name="dummy">
00005  <object name="spam" meta_type="CMF Action" insert-before="*">
00006   <property name="title">Spam</property>
00007   <property name="description"></property>
00008   <property name="url_expr">string:${object_url}/spam</property>
00009   <property name="icon_expr">string:spam_icon.png</property>
00010   <property name="available_expr"></property>
00011   <property name="permissions">
00012    <element value="View" /></property>
00013   <property name="visible">True</property>
00014  </object>
00015  <object name="foo" insert-after="*">
00016   <property name="icon_expr">string:foo_icon.png</property>
00017  </object>
00018  </object>
00019 </object>
00020 """

Definition at line 171 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions" meta_type="CMF Actions Tool"
00004    xmlns:i18n="http://xml.zope.org/namespaces/i18n">
00005  <action-provider name="portal_actions"/>
00006  <object name="dummy" meta_type="CMF Action Category">
00007   <property name="title"></property>
00008   <object name="foo" meta_type="CMF Action">
00009    <property name="title">Foo</property>
00010    <property name="description"></property>
00011    <property name="url_expr">string:${object_url}/foo</property>
00012    <property name="icon_expr"></property>
00013    <property name="available_expr">python:1</property>
00014    <property name="permissions"></property>
00015    <property name="visible">True</property>
00016   </object>
00017   <object name="bar" meta_type="CMF Action">
00018    <property name="title">Bar</property>
00019    <property name="description"></property>
00020    <property name="url_expr">string:${object_url}/bar</property>
00021    <property name="icon_expr"></property>
00022    <property name="available_expr">python:0</property>
00023    <property name="permissions">
00024     <element value="Manage portal"/>
00025    </property>
00026    <property name="visible">False</property>
00027   </object>
00028  </object>
00029 </object>
00030 """

Definition at line 120 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions" meta_type="CMF Actions Tool"
00004    xmlns:i18n="http://xml.zope.org/namespaces/i18n">
00005  <action-provider name="portal_actions"/>
00006  <action-provider name="portal_foo">
00007   <action action_id="foo"
00008           title="Foo"
00009           url_expr="string:${object_url}/foo"
00010           condition_expr="python:1"
00011           category="dummy"
00012           visible="True"/>
00013  </action-provider>
00014  <action-provider name="portal_bar">
00015   <action action_id="bar"
00016           title="Bar"
00017           url_expr="string:${object_url}/bar"
00018           condition_expr="python:0"
00019           category="dummy"
00020           visible="False">
00021    <permission>Manage portal</permission>
00022   </action>
00023  </action-provider>
00024 </object>
00025 """

Definition at line 94 of file test_actions.py.

Initial value:
00001 """\
00002 <?xml version="1.0"?>
00003 <object name="portal_actions">
00004  <action-provider name="portal_actions" remove=""/>
00005  <action-provider name="not_existing" remove=""/>
00006  <action-provider name="portal_bar" remove=""/>
00007 </object>
00008 """

Definition at line 192 of file test_actions.py.